private void button5_Click(object sender, EventArgs e)
 {
     decimal[,] array =
     {
         { 7, 200 },
         { 9, 500 }
     };
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานสินค้าคงเหลือ "
                             + Library.ConvertDateToThaiDate(dateTimePicker_S.Value), "สินค้า : " + txt_p_S.Text + " - " + txt_p_E.Text);
 }
Example #2
0
        /// <summary>
        /// Excel
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button3_Click(object sender, EventArgs e)
        {
            string getName = "";

            if (radioButton1.Checked == true)
            {
                getName = "คงอยู่";
            }
            else
            {
                getName = "ลาออก";
            }
            CodeFileDLL.ExcelReport(dataGridView1, "รายงานสมาชิก " + getName, "");
        }
        private void BtExcel_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count == 0)
            {
                return;
            }
            Cursor.Current = Cursors.WaitCursor;
            string   KeyWord = "";
            DateTime dateS   = dateTimePickerStart.Value;
            DateTime dateE   = dateTimePickerEnd.Value;

            if (textBoxKeySearch.Text != "")
            {
                KeyWord = ("ค้าหาโดย DocNo : " + textBoxKeySearch.Text + "  วันที่ : " + dateS + " ถึง " + dateE);
            }
            else
            {
                KeyWord = ("ค้าหาโดย วันที่ : " + dateS + " ถึง " + dateE);
            }

            CodeFileDLL.ExcelReport(dataGridView1, this.Text.ToString(), KeyWord);
            Cursor.Current = Cursors.Default;
        }
Example #4
0
 private void button5_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานรับ - จ่าย - คงเหลือ ณ "
                             + Library.ConvertDateToThaiDate(dateTimePicker_S.Value) + " - "
                             + Library.ConvertDateToThaiDate(dateTimePicker_E.Value), "สินค้า : " + txt_p_S.Text + " - " + txt_p_E.Text);
 }
 private void button2_Click_1(object sender, EventArgs e)
 {
     //string dateS = Library.ConvertDateToThaiDate(dateTimePickerStart.Value);
     //string dateE = Library.ConvertDateToThaiDate(dateTimePickerEnd.Value);
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานสมาชิกปันผล - เฉลี่ยคืน", "");
 }
Example #6
0
 private void button6_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงาน รับ-จ่าย-คงเหลือ ห้องของเสีย",
                             Library.ConvertDateToThaiDate(dateTimePickerStart.Value) + " - " +
                             Library.ConvertDateToThaiDate(dateTimePickerEnd.Value));
 }
 private void button1_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานผลต่าง 28/04/2561", "");
 }
 private void button5_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานเอกสารตรวจนับ " + Library.ConvertDateToThaiDate(dateTimePickerStart.Value) + " - " +
                             Library.ConvertDateToThaiDate(dateTimePickerEnd.Value), "");
 }
 private void button2_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานปันผลสมาชิก", "");
 }
 private void button2_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานของเสียคงคลัง ณ วันที่ " + Library.ConvertDateToThaiDate(dateTimePickerStart.Value), "");
 }
Example #11
0
 private void button7_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView2, "เอกสารตรวจนับ " + textBoxDocNo.Text + " วันที่ : " + textBoxDocdate.Text, "");
 }
Example #12
0
 private void button5_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานผู้ใช้งาน", "");
 }
 private void button2_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานสินค้าเข้าห้องของเสีย " + textBoxBarcode.Text, "");
 }
 private void button2_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานเบิกใช้ ณ วันที่ " + Library.ConvertDateToThaiDate(dateTimePicker1.Value) + " - " + Library.ConvertDateToThaiDate(dateTimePicker2.Value), "");
 }
Example #15
0
 private void button1_Click(object sender, EventArgs e)
 {
     CodeFileDLL.ExcelReport(dataGridView1, "รายงานสมาชิกคงอยู่-ลาออก", "");
 }