Esempio n. 1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     strInvHeadId = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
     String strSta = dataGridView1.Rows[e.RowIndex].Cells[23].Value.ToString();
     String strConf = dataGridView1.Rows[e.RowIndex].Cells[22].Value.ToString();
     SalePosNew.InvOriginal frm = new SalePosNew.InvOriginal(strInvHeadId, strSta, strConf);
     frm.StartPosition = FormStartPosition.CenterParent;
     frm.ShowDialog();
 }
Esempio n. 2
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 { }
 }
Esempio n. 3
0
 private void toolStripButton8_Click(object sender, EventArgs e)
 {
     SalePosNew.InvOriginal frm = new SalePosNew.InvOriginal();
     frm.StartPosition = FormStartPosition.CenterParent;
     frm.ShowDialog();
 }