Пример #1
0
        void XemChungTu()
        {
            string strMa_Ct = txtMa_Ct.Text.Trim();

            Hashtable ht = new Hashtable();

            ht["MA_CT"]       = txtMa_Ct.Text;
            ht["NGAY_CT1"]    = Library.StrToDate(dteNgay_Ct1.Text);
            ht["NGAY_CT2"]    = Library.StrToDate(dteNgay_Ct2.Text);
            ht["SO_CT1"]      = txtSo_Ct1.Text;
            ht["SO_CT2"]      = txtSo_Ct2.Text;
            ht["MA_DT"]       = txtMa_Dt.Text;
            ht["MA_KHO"]      = txtMa_Kho.Text;
            ht["MA_NH_VT"]    = txtMa_Nh_Vt.Text;
            ht["MA_VT"]       = txtMa_Vt.Text;
            ht["GETKEY_ONLY"] = true;
            ht["MA_DVCS"]     = Element.sysMa_DvCs;

            string strKey = (string)SQLExec.ExecuteReturnValue("sp_GetKeyPh", ht, CommandType.StoredProcedure);

            DataRow drDmCt      = DataTool.SQLGetDataRowByID("SYSDMCT", "Ma_Ct", strMa_Ct_Current);
            string  strTable_Ct = (string)drDmCt["Table_Ct"];

            frmInheritVoucher_View frm = new frmInheritVoucher_View();

            frm.strTbl_Inherit = strTable_Ct;
            frm.bSelect_All    = this.chkAll.Checked;//Nút check liệt kê tất cả dùng cho NM kế thừa từ PO, trong trường hợp đã kế thừa rồi thì ko hiển thị nữa
            frm.Load(frmEditCt, strMa_Ct, strKey);
        }
Пример #2
0
        void XemChungTu()
        {
            string strMa_Ct = txtMa_Ct.Text.Trim();

            Hashtable ht = new Hashtable();

            ht["MA_CT"]       = txtMa_Ct.Text;
            ht["NGAY_CT1"]    = Library.StrToDate(dteNgay_Ct1.Text);
            ht["NGAY_CT2"]    = Library.StrToDate(dteNgay_Ct2.Text);
            ht["SO_CT1"]      = txtSo_Ct1.Text;
            ht["SO_CT2"]      = txtSo_Ct2.Text;
            ht["MA_DT"]       = txtMa_Dt.Text;
            ht["MA_KHO"]      = txtMa_Kho.Text;
            ht["MA_NH_VT"]    = txtMa_Nh_Vt.Text;
            ht["MA_VT"]       = txtMa_Vt.Text;
            ht["GETKEY_ONLY"] = true;
            ht["MA_DVCS"]     = Element.sysMa_DvCs;

            string strKey = (string)SQLExec.ExecuteReturnValue("sp_GetKeyPh", ht, CommandType.StoredProcedure);

            DataRow drDmCt      = DataTool.SQLGetDataRowByID("SYSDMCT", "Ma_Ct", strMa_Ct_Current);
            string  strTable_Ct = (string)drDmCt["Table_Ct"];

            frmInheritVoucher_View frm = new frmInheritVoucher_View();

            frm.Load(frmEditCt, strMa_Ct, strKey);
        }