Beispiel #1
0
        private void Bt_uploadbegin_Click(object sender, EventArgs e)
        {
            customerinput_ctrl md = new customerinput_ctrl();
            string             connection_string = Utils.getConnectionstr();

            md.customerBegibalancelist();

            LinqtoSQLDataContext db = new LinqtoSQLDataContext(connection_string);

            //var rs = from tblFBL5beginbalace in db.tblFBL5beginbalaces

            //         select tblFBL5beginbalace;

            //this.dataGridView1.DataSource = rs;
            //this.db = db;

            //    this.rs = rs;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            customerinput_ctrl md = new customerinput_ctrl();
            //      DialogResult kq1 = MessageBox.Show("Xóa toàn bộ dataCustomer ? ", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            //      bool kq;
            string connection_string = Utils.getConnectionstr();

            LinqtoSQLDataContext dc = new LinqtoSQLDataContext(connection_string);

            var typeffmain = typeof(tbl_KaCustomer);
            var typeffsub  = typeof(tbl_KaCustomer);

            //switch (kq1)
            //{

            //    case DialogResult.None:
            //        break;
            //    case DialogResult.Yes:

            //        //  this.uploadCustomerToolStripMenuItem.Enabled = false;

            //DialogResult kq2 = MessageBox.Show("YEs là xóa dữ liệu customer, bạn định xóa ? ", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            //if (kq2 == DialogResult.Yes)
            //{
            //    md.customerinput();

            //    VInputchange inputcdata1 = new VInputchange("", "LIST MASTER DATA CUSTOMER ", dc, "tbl_KaCustomer", "tbl_KaCustomer", typeffmain, typeffsub, "id", "id", "");
            //    inputcdata1.Show();
            //}
            //else
            //{
            //    return;
            //}

            //     inputcdata.show
            //       inputcdata.MaximumSize = true;



            //    break;
            //case DialogResult.Cancel:
            //    break;
            //case DialogResult.Abort:
            //    break;
            //case DialogResult.Retry:
            //    break;
            //case DialogResult.Ignore:
            //    break;
            //case DialogResult.OK:
            //    break;
            //case DialogResult.No:

            //    var typeffmain = typeof(tbl_KaCustomer);
            //     var typeffsub = typeof(tbl_KaCustomer);

            VInputchange inputcdata = new VInputchange("", "LIST MASTER DATA CUSTOMER ", dc, "tbl_KaCustomer", "tbl_KaCustomer", typeffmain, typeffsub, "id", "id", "");

            inputcdata.Show();



            //    break;
            //default:
            //    break;
            //    }
        }