Exemple #1
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            frmSalesOrder frmSalesOrder = new SPM.frmSalesOrder();

            frmSalesOrder.BringToFront();
            frmSalesOrder.StartPosition = FormStartPosition.CenterScreen;
            frmSalesOrder.ShowDialog();

            frmSalesOrder.RefreshParentForm += delegate { BindDataGridView(pgSalesOrder.PageIndex); };
        }
Exemple #2
0
 private void tsbEdit_Click(object sender, EventArgs e)
 {
     if (soid > 0)
     {
         frmSalesOrder frmSalesOrder = new SPM.frmSalesOrder();
         frmSalesOrder.soid   = soid;
         frmSalesOrder.soguid = soguid;
         frmSalesOrder.BringToFront();
         frmSalesOrder.StartPosition = FormStartPosition.CenterScreen;
         frmSalesOrder.ShowDialog();
     }
     else
     {
         this.ShowMessage("请选择要编辑的销售单");
     }
 }