Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     string strStartDate = dateTimePicker1.Value.ToString("yyyy-MM-dd", new CultureInfo("en-US"));
     string strEndDate = dateTimePicker2.Value.ToString("yyyy-MM-dd", new CultureInfo("en-US"));
     if (radioButton1.Checked == true)
     {
         StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(DataDate(strStartDate, strEndDate), 31, strStartDate, strEndDate, BranchName);
         rpt.ShowDialog();
     }
     else if (radioButton2.Checked == true)
     {
         StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(DataDate(strStartDate, strEndDate), 32, strStartDate, strEndDate, BranchName);
         rpt.ShowDialog();
     }
     else if (radioButton3.Checked == true)
     {
         StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(DataDate(strStartDate, strEndDate), 33, strStartDate, strEndDate, BranchName);
         rpt.ShowDialog();
     }
     else if (radioButton4.Checked == true)
     {
         StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(DataDate(strStartDate, strEndDate), 34, strStartDate, strEndDate, BranchName);
         rpt.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     string theDate1 = dateTimePicker1.Value.ToString("yyyy-MM-dd", new CultureInfo("en-US"));
     string theDate2 = dateTimePicker2.Value.ToString("yyyy-MM-dd", new CultureInfo("en-US"));
     StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(DataSale(theDate1, theDate2), 41, dateTimePicker1.Value, dateTimePicker2.Value, "");
     rpt.ShowDialog();
 }
Ejemplo n.º 3
0
 private void s35InvoiceSingaporeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count <= 0) { return; }
     String strSaleHeadId = rowSelect().Cells[1].Value.ToString();
     String sub = strSaleHeadId.Substring(0, 2);
     if (sub == "SC" || sub == "SO")
     {
         if (dataGridView4.CurrentRow.Cells[19].Value.ToString() == "") { return; }
         StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(InvMalay(), 62, "","SG");
         rpt.ShowDialog();
     }
     else
     {
         return;
     }
 }
Ejemplo n.º 4
0
 private void s24PackingListIndonesiaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count <= 0 && dataGridView4.Rows.Count <= 0) { return; }
     StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(InvThai(), 61, "");
     rpt.ShowDialog();
 }
Ejemplo n.º 5
0
 /*รายงาน*/
 private void packingListToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count <= 0) { return; }
     if (dataGridView4.CurrentRow.Cells[19].Value.ToString() == "") { return; }
     StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(InvThai(), 63, "");
     rpt.ShowDialog();
 }
Ejemplo n.º 6
0
 private void toolStripButton4_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count > 0)
     {
         StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(DataSent(), 51, "");
         rpt.ShowDialog();
     }
 }
Ejemplo n.º 7
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            lbStatus.Text = "สถานะ : กำลังออกรายงาน";
            string indextt = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
            string strStock = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
            string strStockId = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();

            if (MessageBox.Show("คุณต้องการออกรายงานรอบที่ " + indextt + " ใช่หรือไม่?", "คำยืนยัน", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
            {
                dd = Convert.ToDateTime(dataGridView1.Rows[e.RowIndex].Cells[2].Value);
                dateAdjust = dd.ToString("yyyy-MM-dd", new CultureInfo("en-US"));

                dateNow = DateTime.Now.ToString("yyyy-MM-dd", new CultureInfo("en-US"));
                NameUser = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                Number = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                gvRow = Data(Number, strStockId).Rows.Count.ToString();

                StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(Data(Number, strStockId), 21, strStock);
                //progressBar1.Value = 0;

                rpt.ShowDialog();
                lbStatus.Text = "สถานะ : พร้อม";
            }
        }
Ejemplo n.º 8
0
 private void invoiceToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count <= 0) { return; }
     StockAsiaDrink.COReport2 rpt = new StockAsiaDrink.COReport2(InvThai(), 62, "");
     rpt.ShowDialog();
 }