![]() = 2 ĭataTable transactionSteps = dataAccess.ExecuteQueryDataSet( " select WF_STEP_DESC1 from WF_STEPS where wf_id= 10101 and MODULE_CODE= '" + cmbProject.Text + " '").Tables GrdDocuments.DataSource = transactionDetails ![]() Private void FillTransactionDetails( int systemTransactionId)ĭataTable transactionDetails = dataAccess.ExecuteQueryDataSet( " SELECT DOC_TYPE_DESC1 FROM WF_SYSTEM_TRANS_DT WHERE SYS_TRANS_ID=1001 and MODULE_CODE= '" + cmbProject.Text + " '").Tables Var tool = new FactoryItemTool( " ", () => " ", diagram => new DiagramShape(BasicShapes.Rectangle), new ( 150, 100), false) ĭ(DiagramCommandsBase.StartDragToolCommand, tool, null) Var draggedRow = (gridHitInfo.RowHandle) as Item Return gridHitInfo.InDataRow & (Math.Abs(location.X - mouseDownLocation.X) > 2 || Math.Abs(location.Y - mouseDownLocation.Y) > 2) Private bool CanStartDragDrop(Point location) Private void grdTransactions_MouseLeave( object sender, EventArgs e) ![]() GridHitInfo = grdVTransactions.CalcHitInfo(e.Location) Private void grdTransactions_MouseDown( object sender, MouseEventArgs e) If (e.Button = MouseButtons.Left & CanStartDragDrop(e.Location)) Private void grdTransactions_MouseMove( object sender, MouseEventArgs e) Private void btnSalesInvoice_Click( object sender, EventArgs e) GrdTransactions.DataSource = dtTransactions LblCurrentProject.Text = cmbProject.Text ĭataTable dtTransactions = dataAccess.ExecuteQueryDataSet( " select sys_trans_id, sys_trans_desc1 from WF_SYSTEM_TRANS where MODULE_CODE= '" + cmbProject.Text + " '").Tables Private void cmbProject_SelectedIndexChanged( object sender, EventArgs e) Project intiation // Fill drop down for project listĭataAccess dataAccess = new DataAccess(GlobalFunctions.GetConnectionString()) ĭataTable dtResult = dataAccess.ExecuteQueryDataSet( " select MODULE_CODE ,MODULE_DESC from SYSTEM_MODULES where module_is_active=1").Tables ĬmbProject.DisplayMember = " MODULE_DESC" TODO: This line of code loads data into the 'vA_ERP4_ADMINDataSet.SYSTEM_MODULES' table. Public void Mainform_Load( object sender, EventArgs e) Var transactions = new ObservableCollection() įor ( int i = 0 i transactions.Remove(e.Item.Tag as Item) Set the AllowLeaveInvalidEditor property to true to allow users to close an editor that did not pass validation.Using .ViewInfo ĭ.GridView gridView = new .GridView() To indicate that the new value is invalid, set the IsValid property to false. The Value property returns the focused node’s new value. This event occurs when a node is about to lose focus. ![]() To enable this behavior, handle the ValidateNode event. The TreeViewControl allows you to validate new node values. Marks the processed input value as invalid and displays an error within the editor. Marks the processed input value as invalid and displays an error within the editor with the specified error icon type. When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. The event data class exposes the following methods: Method Gets the action that caused the validation. Gets the TreeViewControl that raised this event. Gets or sets a reference to the object that raised the event. ![]() Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Gets or sets a value specifying whether the value is valid. Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Gets or sets an object that describes the validation error. Gets the culture related to the validation. The following properties provide information specific to this event: The ValidateNode event's data class is TreeViewNodeValidationEventArgs. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |