Esempio n. 1
0
 private void btnExportDraw_Click(object sender, EventArgs e)
 {
     Sale.rptShowSaleSelect rptShowSaleSelect = new KTCERP.Sale.rptShowSaleSelect();
     rptShowSaleSelect.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
     rptShowSaleSelect.setSaleId = Convert.ToInt32(SaleId);
     rptShowSaleSelect.setDraw = "1";
     rptShowSaleSelect.ShowDialog();
 }
Esempio n. 2
0
 private void พมพใบเบกToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count == 0 && dataGridView4.SelectedRows.Count == 0)
     {
         MessageBox.Show("กรุณาเลือกรายการขายที่ต้องการแสดงรายงาน ", "รายงานผิดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     String strSaleHeadId = rowSelect().Cells[1].Value.ToString();
     String sub = strSaleHeadId.Substring(0, 2);
     if (sub == "SC" || sub == "SO")
     {
         String _SaleAppHeadId = dataGridView2.CurrentRow.Cells[1].Value.ToString();
         PrintReport(_SaleAppHeadId);
     }
     else
     {
         Sale.rptShowSaleSelect rptShowSaleSelect = new KTCERP.Sale.rptShowSaleSelect();
         rptShowSaleSelect.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
         rptShowSaleSelect.setSaleId = Convert.ToInt32(strSaleHeadId);
         rptShowSaleSelect.setDraw = "1";
         rptShowSaleSelect.ShowDialog();
     }
 }
Esempio n. 3
0
 /*รายงานใบขาย*/
 private void พมพใบขายToolStripMenuItem_Click(object sender, EventArgs e)
 {
     String strSaleHeadId = rowSelect().Cells[1].Value.ToString();
     String sub = strSaleHeadId.Substring(0, 2);
     if (sub == "SC" || sub == "SO")
     {
         if (dataGridView1.SelectedRows.Count == 0 && dataGridView4.SelectedRows.Count == 0) { return; }
         SalePosNew.SalePosReport rpt = new SalePosNew.SalePosReport(DataTrans(), 21, "");
         rpt.ShowDialog();
     }
     else
     {
         Sale.rptShowSaleSelect rptShowSaleSelect = new KTCERP.Sale.rptShowSaleSelect();
         rptShowSaleSelect.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
         rptShowSaleSelect.setSaleId = Convert.ToInt32(strSaleHeadId);
         rptShowSaleSelect.ShowDialog();
     }
 }
Esempio n. 4
0
        private void btnReportSale_Click(object sender, EventArgs e)
        {
            if (!DBConnString.clsDB.IsConnected()) return;
            Sale.rptShowSaleSelect rptShowSaleSelect = new KTCERP.Sale.rptShowSaleSelect();

            rptShowSaleSelect.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
            rptShowSaleSelect.setSaleId = Convert.ToInt32(SaleId);
            rptShowSaleSelect.ShowDialog();
        }
Esempio n. 5
0
        private void btnReportSale_Click(object sender, EventArgs e)
        {
            Sale.rptShowSaleSelect rptShowSaleSelect = new KTCERP.Sale.rptShowSaleSelect();
            rptShowSaleSelect.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
            rptShowSaleSelect.setSaleId = Convert.ToInt32(SaleId);
            rptShowSaleSelect.ShowDialog();

            //SalePos7CSK.rptSaleWeight rpt = new rptSaleWeight();
            //rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
            //rpt.setSaleId = Convert.ToInt16(SaleId);
            //rpt.ShowDialog();
        }