public void UpdateCTCT(ChungTu_ChiTietInfonew info) { ExecuteCommand(Declare.StoreProcedureNamespace.spChungTuChiTietXTHUpdate, info.IdChungTuChiTiet, info.IdChungTu, info.IdSanPham, info.SoLuong, info.DonGia, info.ThanhTien); }
public int InsertChiTietChungTu(ChungTu_ChiTietInfonew chiTietInfo) { ExecuteCommand(Declare.StoreProcedureNamespace.spChungTuChiTietDNXTHNewInsert, chiTietInfo.IdChungTuChiTiet, chiTietInfo.IdChungTu, chiTietInfo.IdSanPham, chiTietInfo.SoLuong, chiTietInfo.DonGia, chiTietInfo.ThanhTien, chiTietInfo.IdChiPhi, chiTietInfo.IdPhongBan); return(Convert.ToInt32(Parameters["p_IdChiTiet"].Value.ToString())); }
private void btnChiTiet_Click(object sender, EventArgs e) { if (HangHoa != null) { GetValueInstance(grvList.FocusedRowHandle); frm_ChiTietMaVachnew frm = new frm_ChiTietMaVachnew(HangHoa, liChiTiet, IdKho); if (frm.ShowDialog() == DialogResult.OK) { ChungTu_ChiTietInfonew ct = business.ListChiTietChungTu[InDex]; business.MergeChiTietHangHoa(frm.liChiTiet, delegate(ChungTu_ChiTietHangHoaXTHInfo match) { return(business.Conjunction( business.ListChiTietChungTu[ business.ListChiTietChungTu.IndexOf(ct)], match)); }); } } }
//todo: @HANHBD //việc thực hiện xóa trong trong bảng chứng từ chi tiết có thể dùng một store chung //vì giống nhau prototype hàm (idChungTuChiTiet, idChiTietHangHoa) internal void Delete(ChungTu_ChiTietInfonew infor) { ExecuteCommand(Declare.StoreProcedureNamespace.spChungTuChiTietDeleteByIdChungTu, infor.IdChungTuChiTiet); }