Exemple #1
0
        private TPhieuthu CreatePhieuThu()
        {
            var objPhieuThu = new TPhieuthu();

            objPhieuThu.PaymentId    = Utility.Int32Dbnull(txtPayment_ID.Text, -1);
            objPhieuThu.MaPthu       = Utility.sDbnull(txtMA_PTHU.Text, "");
            objPhieuThu.SluongCtuGoc = Utility.Int16Dbnull(txtSLUONG_CTU_GOC.Text);
            objPhieuThu.LoaiPhieu    = Convert.ToByte(status);
            objPhieuThu.NgayThien    = dtCreateDate.Value;
            objPhieuThu.SoTien       = Utility.DecimaltoDbnull(txtSO_TIEN.Text, 0);
            objPhieuThu.NguoiNop     = Utility.sDbnull(txtNGUOI_NOP.Text, "");
            objPhieuThu.TkhoanCo     = Utility.sDbnull(txtTKHOAN_CO.Text, "");
            objPhieuThu.TkhoanNo     = Utility.sDbnull(txtTKHOAN_NO.Text, "");
            objPhieuThu.LdoNop       = Utility.sDbnull(txtLDO_NOP.Text, "");
            return(objPhieuThu);
        }
 private TPhieuthu CreatePhieuThu()
 {
     var objPhieuThu = new TPhieuthu();
     objPhieuThu.PaymentId = Utility.Int32Dbnull(txtPayment_ID.Text, -1);
     objPhieuThu.MaPthu = Utility.sDbnull(txtMA_PTHU.Text, "");
     objPhieuThu.SluongCtuGoc = Utility.Int16Dbnull(txtSLUONG_CTU_GOC.Text);
     objPhieuThu.LoaiPhieu = Convert.ToByte(status);
     objPhieuThu.NgayThien = dtCreateDate.Value;
     objPhieuThu.SoTien = Utility.DecimaltoDbnull(txtSO_TIEN.Text, 0);
     objPhieuThu.NguoiNop = Utility.sDbnull(txtNGUOI_NOP.Text, "");
     objPhieuThu.TkhoanCo = Utility.sDbnull(txtTKHOAN_CO.Text, "");
     objPhieuThu.TkhoanNo = Utility.sDbnull(txtTKHOAN_NO.Text, "");
     objPhieuThu.LdoNop = Utility.sDbnull(txtLDO_NOP.Text, "");
     return objPhieuThu;
 }