public LNSdata obj_DotPhanBo(String ParentID, String MaND, String sLNS, String iID_MaDotPhanBo, String iID_MaTrangThaiDuyet, String TruongTien, String KhoGiay, String LuyKe, String ToSo) { LNSdata _LNSdata = new LNSdata(); #region Đợt phân bổ DataTable dtDotPhanBo = PhanBo_ReportModels.LayDSDotPhanBoTong(MaND, iID_MaTrangThaiDuyet, sLNS, TruongTien); SelectOptionList slPhanBo = new SelectOptionList(dtDotPhanBo, "iID_MaDotPhanBo", "dNgayDotPhanBo"); _LNSdata.iID_MaDotPhanBo = MyHtmlHelper.DropDownList(ParentID, slPhanBo, iID_MaDotPhanBo, "iID_MaDotPhanBo", "", "class=\"input1_2\" style=\"width: 80%\"onchange=\"Chon()\""); dtDotPhanBo.Dispose(); #endregion #region Tờ Số DataTable dtToSo = dtTo(MaND, sLNS, iID_MaDotPhanBo, iID_MaTrangThaiDuyet, TruongTien, KhoGiay, LuyKe); SelectOptionList slToSo = new SelectOptionList(dtToSo, "MaTo", "TenTo"); _LNSdata.ToSo = MyHtmlHelper.DropDownList(ParentID, slToSo, ToSo, "ToSo", "", "class=\"input1_2\" style=\"width: 80%\""); dtToSo.Dispose(); #endregion return _LNSdata; }
public LNSdata obj_DonVi(String ParentID, String MaND, String iID_MaDonVi, String iID_MaDanhMuc,String sLNS, String iID_MaTrangThaiDuyet) { LNSdata _LNSdata = new LNSdata(); #region Nhóm đơn vị DataTable dtNhomDonVi = DS_NhomDonVi(MaND,sLNS,iID_MaTrangThaiDuyet); SelectOptionList slNhomDonVi = new SelectOptionList(dtNhomDonVi, "iID_MaDanhMuc", "TenDM"); _LNSdata.iID_MaDanhMuc = MyHtmlHelper.DropDownList(ParentID, slNhomDonVi, iID_MaDanhMuc, "iID_MaDanhMuc", "", "class=\"input1_2\" style=\"width: 85%\" onchange=\"ChonDV()\""); dtNhomDonVi.Dispose(); #endregion #region Đơn vị DataTable dtDonVi = DanhSachDonVi(MaND,iID_MaDanhMuc,sLNS,iID_MaTrangThaiDuyet); SelectOptionList slDonVi = new SelectOptionList(dtDonVi, "iID_MaDonVi", "TenDV"); _LNSdata.iID_MaDonVi = MyHtmlHelper.DropDownList(ParentID, slDonVi, iID_MaDonVi, "iID_MaDonVi", "", "class=\"input1_2\" style=\"width: 85%\""); dtDonVi.Dispose(); #endregion return _LNSdata; }
/// <summary> /// onchange /// </summary> /// <param name="ParentID"></param> /// <param name="sLNS"></param> /// <param name="NamLamViec"></param> /// <param name="iID_MaDotPhanBo"></param> /// <param name="iID_MaDonVi"></param> /// <returns></returns> public JsonResult ds_DotPhanBo(String ParentID, String sLNS, String MaND, String iID_MaTrangThaiDuyet, String iID_MaDotPhanBo, String iID_MaDonVi,String iThongBao) { LNSdata _LNSdata = new LNSdata(); #region Đợt phân bổ DataTable dtDotPhanBo = PhanBo_ReportModels.LayDSDotPhanBo2(MaND, iID_MaTrangThaiDuyet, sLNS); SelectOptionList slPhanBo = new SelectOptionList(dtDotPhanBo, "iID_MaDotPhanBo", "dNgayDotPhanBo"); _LNSdata.iID_MaDotPhanBo = MyHtmlHelper.DropDownList(ParentID, slPhanBo, iID_MaDotPhanBo, "iID_MaDotPhanBo", "", "class=\"input1_2\" style=\"width: 100%\" Onchange=\"ChonDV()\""); dtDotPhanBo.Dispose(); #endregion #region Danh sách đơn vị DataTable dtDonVi = PhanBo_ReportModels.DanhSachDonVi2(MaND, iID_MaTrangThaiDuyet, sLNS, iID_MaDotPhanBo, false, true, iThongBao,false); String ViewNam = "~/Views/DungChung/DonVi/DonVi_DanhSach.ascx"; DanhSachDonViModels Model = new DanhSachDonViModels(MaND, iID_MaDonVi, dtDonVi, "rptPhanBo_4_2", 1); String strDonVi = HamChung.RenderPartialViewToStringLoad(ViewNam, Model, this); _LNSdata.iID_MaDonVi = strDonVi; #endregion return Json(_LNSdata, JsonRequestBehavior.AllowGet); }
public LNSdata obj_DotPhanBo(String ParentID, String sLNS, String MaND, String iID_MaTrangThaiDuyet, String iID_MaDotPhanBo, String iID_MaDonVi,String iThongBao) { LNSdata _LNSdata = new LNSdata(); #region Đợt phân bổ DataTable dtDotPhanBo = PhanBo_ReportModels.LayDSDotPhanBo2(MaND,iID_MaTrangThaiDuyet, sLNS); SelectOptionList slPhanBo = new SelectOptionList(dtDotPhanBo, "iID_MaDotPhanBo", "dNgayDotPhanBo"); _LNSdata.iID_MaDotPhanBo = MyHtmlHelper.DropDownList(ParentID, slPhanBo, iID_MaDotPhanBo, "iID_MaDotPhanBo", "", "class=\"input1_2\" style=\"width: 100%\" Onchange=\"ChonDV()\""); dtDotPhanBo.Dispose(); #endregion #region Danh sách đơn vị DataTable dtDonVi = PhanBo_ReportModels.DanhSachDonVi2(MaND,iID_MaTrangThaiDuyet, sLNS,iID_MaDotPhanBo,false,true,iThongBao); SelectOptionList slDonVi = new SelectOptionList(dtDonVi, "iID_MaDonVi", "TenHT"); _LNSdata.iID_MaDonVi = MyHtmlHelper.DropDownList(ParentID, slDonVi, iID_MaDonVi, "iID_MaDonVi", "", "class=\"input1_2\" style=\"width: 100%\""); #endregion return _LNSdata; }
public LNSdata obj_DotPhanBo(String ParentID, String MaND, String sLNS, String iID_MaDotPhanBo, String iID_MaTrangThaiDuyet, String TruongTien,String KhoGiay,String ToSo) { LNSdata _LNSdata = new LNSdata(); #region Danh sách đơn vị DataTable dtDotPhanBo = DanhSach_DotPhanBo(MaND, sLNS, iID_MaTrangThaiDuyet, TruongTien); SelectOptionList slDotPhanBo = new SelectOptionList(dtDotPhanBo, "iID_MaDotPhanBo", "dNgayDotPhanBo"); _LNSdata.iID_MaDotPhanBo = MyHtmlHelper.DropDownList(ParentID, slDotPhanBo, iID_MaDotPhanBo, "iID_MaDotPhanBo", "", "class=\"input1_2\" style=\"width: 100%\"onchange=\"ChonNLV()\""); #endregion #region Option Tờ số DataTable dtToSo = dtTo(MaND, sLNS, iID_MaDotPhanBo, iID_MaTrangThaiDuyet, TruongTien, KhoGiay); SelectOptionList slToSo = new SelectOptionList(dtToSo, "MaTo", "TenTo"); _LNSdata.ToSo = MyHtmlHelper.DropDownList(ParentID, slToSo, ToSo, "ToSo", "", "class=\"input1_2\" style=\"width: 100%\""); dtToSo.Dispose(); #endregion return _LNSdata; }