Example #1
0
 private void pACKINGLISTORIGINALToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView4.Rows.Count <1) return;
     String strSaleHeadId = rowSelect().Cells[1].Value.ToString();
     String sub = strSaleHeadId.Substring(0, 2);
     if (sub == "SC" || sub == "SO")
     {
         Sale.rptPackingList rpt = new KTCERP.Sale.rptPackingList(rowSelect().Cells[1].Value.ToString());
         rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
         rpt.setSaleId = Convert.ToInt32(0);
         rpt.ShowDialog();
     }
     else
     {
         Sale.rptPackingList rpt = new KTCERP.Sale.rptPackingList();
         rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
         rpt.setSaleId = Convert.ToInt32(strSaleHeadId);
         rpt.ShowDialog();
     }
 }
Example #2
0
 private void btnPackingList_Click(object sender, EventArgs e)
 {
     Sale.rptPackingList rpt = new KTCERP.Sale.rptPackingList();
     rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
     rpt.setSaleId = Convert.ToInt32(SaleId);
     rpt.ShowDialog();
 }