예제 #1
0
        private void btnBales_Click(object sender, EventArgs e)
        {
            Border.rptBales rpt = new KTCERP.Border.rptBales();

            rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
            rpt.setSaleId = SaleId.ToString();
            rpt.ShowDialog();
        }
예제 #2
0
 /*แสดงรายงาน packing report*/
 private void pACKINGREPORTToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count < 1)
     {
         MessageBox.Show("กรุณาเลือกใบขาย");
         return;
     }
     String strSaleHeadId = rowSelect().Cells[1].Value.ToString();
     String sub = strSaleHeadId.Substring(0, 2);
     if (sub == "SC" || sub == "SO")
     {
         Border.rptBales n = new Border.rptBales(rowSelect().Cells[1].Value.ToString());
         n.StartPosition = FormStartPosition.CenterParent;
         n.Show();
     }
     else
     {
         Border.rptBales rpt = new KTCERP.Border.rptBales();
         rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
         rpt.setSaleId = strSaleHeadId.ToString();
         rpt.ShowDialog();
     }
 }