private void cmdSearchNumber_Click(object sender, EventArgs e) { Cursor = System.Windows.Forms.Cursors.WaitCursor; using (Solsage_Process_Management_System.Finder.SupplierDocumentZoom frmSupplDocZoom = new Solsage_Process_Management_System.Finder.SupplierDocumentZoom()) { string sBatchDocType = ""; string sNormalDocType = ""; if (txtDocType.Text == "Link Purchase Order") { sBatchDocType = "106"; sNormalDocType = "6"; } else if (txtDocType.Text == "Link GRN") { sBatchDocType = "107"; sNormalDocType = "7"; } //JR Available Parent Docs if (frmSupplDocZoom.ShowDialog(sBatchDocType, sNormalDocType, txtSupplierCode.Text,sAvailableLinkedDocs) == DialogResult.OK) { if (frmSupplDocZoom.sResult != "") { txtNumber.Text = frmSupplDocZoom.sResult; sParentDocType = frmSupplDocZoom.sDocumentType; LoadGridDetail(); } } } Cursor = System.Windows.Forms.Cursors.Default; }
private void cmdSearchNumber_Click(object sender, EventArgs e) { Cursor = System.Windows.Forms.Cursors.WaitCursor; using (Solsage_Process_Management_System.Finder.SupplierDocumentZoom frmSupplDocZoom = new Solsage_Process_Management_System.Finder.SupplierDocumentZoom()) { string sBatchDocType = ""; string sNormalDocType = ""; if (selDocumentType.Text == "Purchase Order") { sBatchDocType = "106"; sNormalDocType = "106"; } else if (selDocumentType.Text == "Goods Rec Note") { sBatchDocType = "107"; sNormalDocType = "107"; } else if (selDocumentType.Text == "Supplier Invoice") { sBatchDocType = "108"; sNormalDocType = "8"; } if (frmSupplDocZoom.ShowDialog(sBatchDocType, sNormalDocType,"","") == DialogResult.OK) { if (frmSupplDocZoom.sResult != "") { txtNumber.Text = frmSupplDocZoom.sResult; loadDocumentDetail(txtNumber.Text); } } } Cursor = System.Windows.Forms.Cursors.Default; }