Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Customised Code Dashboard
// ************************************************** // Custom code for MainController // Created: 17/01/2018 16:49:38 // ************************************************** using System; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Windows.Forms; using Ice.BO; using Ice.UI; using Ice.Lib; using Ice.Adapters; using Ice.Lib.Customization; using Ice.Lib.ExtendedProps; using Ice.Lib.Framework; using Ice.Lib.Searches; using Ice.UI.FormFunctions; using Ice.Core; public class Script { // ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! ** // Begin Wizard Added Module Level Variables ** // End Wizard Added Module Level Variables ** // Add Custom Module Level Variables Here ** public void InitializeCustomCode() { // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines ** // Begin Wizard Added Variable Initialization // End Wizard Added Variable Initialization // Begin Wizard Added Custom Method Calls this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click); this.btnPasteDateUser.Click += new System.EventHandler(this.btnPasteDateUser_Click); // End Wizard Added Custom Method Calls } public void DestroyCustomCode() { // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines ** // Begin Wizard Added Object Disposal this.btnUpdate.Click -= new System.EventHandler(this.btnUpdate_Click); this.btnPasteDateUser.Click -= new System.EventHandler(this.btnPasteDateUser_Click); // End Wizard Added Object Disposal // Begin Custom Code Disposal // End Custom Code Disposal } private void btnUpdate_Click(object sender, System.EventArgs args) { // ** Place Event Handling Code Here ** EpiDataView edvcase = ((EpiDataView)(oTrans.EpiDataViews["V_cboCasesUpdTaskDueDate_1View1"])); System.Data.DataRow edvcaseRow = edvcase.CurrentDataRow; if (edvcaseRow != null) { //edvcaseRow.BeginEdit(); //edvcase.CurrentDataRow["Task_StatusCode"] = epiComboC1.Value.ToString(); //edvcase.CurrentDataRow["RowMod"] = "U"; //oTrans.Update(); //edvcaseRow.EndEdit(); //MessageBox.Show(epiComboC1.Value.ToString()); } MainController.AppControlPanel.HandleToolClick("SaveTool", new Infragistics.Win.UltraWinToolbars.ToolClickEventArgs(MainController.MainToolManager.Tools["SaveTool"], null)); oTrans.OnSave(); oTrans.OnRefreshAll(); //MessageBox.Show("complted test"); //edvcase = null; } private void btnPasteDateUser_Click(object sender, System.EventArgs args) { // ** Place Event Handling Code Here ** Ice.Lib.Framework.EpiTextBox ResolutionText = (EpiTextBox)csm.GetNativeControlReference("effff13b-d54a-4962-9590-d61dbc3d62a9"); string preText = ResolutionText.Text; string postText; string NowDate = DateTime.Now.ToString("dd/MM/yy HH:mm"); // DateTime datetoday = DateTime.Today; var session = (Ice.Core.Session)oTrans.Session; var userId = session.UserID; postText = userId + " " + "( " + NowDate + " ) - \r\n" + preText; ResolutionText.Text = postText; ResolutionText.Focus(); ResolutionText.SelectionStart = userId.Length + 23; ResolutionText.SelectionLength = 0; } private void SearchOnTaskStatAdapterFillDropDown() { // Wizard Generated Search Method // You will need to call this method from another method in custom code // For example, [Form]_Load or [Button]_Click bool recSelected; string whereClause = string.Empty; System.Data.DataSet dsTaskStatAdapter = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "TaskStatAdapter", out recSelected, false, whereClause); if (recSelected) { // Set EpiUltraCombo Properties this.cmbTaskStat.ValueMember = "StatusDescription"; this.cmbTaskStat.DataSource = dsTaskStatAdapter; this.cmbTaskStat.DisplayMember = "StatusDescription"; string[] fields = new string[] { "StatusDescription"}; this.cmbTaskStat.SetColumnFilter(fields); } } }
run
|
edit
|
history
|
help
0
1 to 1000 armstrong
Test
Easter Holiday Calculator
to find the first index of a substring in a given string
Timer2
((((STReaming))))%^%% The 2022 RBC Canadian Open Golf PGA Tour event
ByVal
ru.so
sortowanie ( jaka )? wybor? confirm it!
asxasxsd