示例#1
0
 private void dataGridView4_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         String strSaleHeadId = dataGridView4.Rows[e.RowIndex].Cells[1].Value.ToString();
         String strSta = dataGridView4.Rows[e.RowIndex].Cells[4].Value.ToString();
         String strConf = dataGridView4.Rows[e.RowIndex].Cells[3].Value.ToString();
         String sub = strSaleHeadId.Substring(0, 2);
         if (sub == "SO")
         {
             if (dataGridView4.Rows[e.RowIndex].Cells[19].Value.ToString() != "")
             {
                 SalePosNew.InvOriginal frm = new SalePosNew.InvOriginal(strSaleHeadId, strSta, strConf);
                 frm.Shown += (s, a) => frm.WindowState = FormWindowState.Maximized;
                 frm.ShowDialog();
             }
             else
             {
                 SalePosNew.SalePos frm = new SalePosNew.SalePos(strSaleHeadId, strSta, strConf);
                 frm.Shown += (s, a) => frm.WindowState = FormWindowState.Maximized;
                 frm.ShowDialog();
             }
         }
         else
         {
             Sale.frmEditSaleHead frm = new KTCERP.Sale.frmEditSaleHead();
             frm.StartPosition = FormStartPosition.CenterScreen;
             frm.setSaleId = strSaleHeadId;
             frm.ShowDialog();
         }
         selectSale(whereSale(), whereSaleOld(), whereTop());
     }
     catch { }
 }
示例#2
0
 private void dgvHeadSale_CellMouseDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     lock (o)
     {
         Sale.frmEditSaleHead frm = new KTCERP.Sale.frmEditSaleHead();
         frm.StartPosition = FormStartPosition.CenterScreen;
         frm.setSaleId = SaleId;
         frm.ShowDialog();
         DataReceiveHead();
     }
 }