private void exportDataToolStripMenuItem_Click(object sender, EventArgs e) { frmMTExpItems ofrmMaterialTransfer = new frmMTExpItems(); ofrmMaterialTransfer.MdiParent = this; ofrmMaterialTransfer.Show(); }
private void btnSave_Click(object sender, EventArgs e) { if (ValidationData()) { CResult oResult = new CResult(); CMaterialTransferBO oMaterialTransferBO = new CMaterialTransferBO(); CMTMaster oMaster = GetToBSavedData(); if (oMaster != null) { if (!IsUpdateMode) { oResult = oMaterialTransferBO.Create(oMaster); } else { oResult = oMaterialTransferBO.Update(oMaster, oMTFinalQtyDic); } if (oResult.IsSuccess) { if (currentBranch.CompBrn_IsHeadoffice == "Y") { if (MessageBox.Show("Successfully Done. Do u want to Export these data? ", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { frmMTExpItems objMTExpItems = new frmMTExpItems(txtDeliverOrder.Text.Trim()); objMTExpItems.Show(); } } ClearFormData(); GetDeliverID(); } else { MessageBox.Show(oResult.ErrMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }