protected override void UpdateObject() { item = (AgencyGroup)ViewState["CurrentObject"]; item.AgencyGroupName = TenNhomDonVi.Text.Trim(); item.DisplayOrder = ThuTuHienThi.Text.ToInteger(); item.IsShowStatistic = HienThiThongKe.Checked; AgencyGroupServices.Update(item); }
protected override void CreateNewObject() { item = new AgencyGroup(); item.AgencyGroupName = TenNhomDonVi.Text.Trim(); item.DisplayOrder = ThuTuHienThi.Text.ToInteger(); item.IsShowStatistic = HienThiThongKe.Checked; AgencyGroupServices.Create(item); }
protected override void ShowObjectInformation() { item = AgencyGroupServices.GetById(IntId); ViewState["CurrentObject"] = item; TenNhomDonVi.Text = item.AgencyGroupName; ThuTuHienThi.Text = item.DisplayOrder.ToString(); HienThiThongKe.Checked = item.IsShowStatistic ?? false; }
protected override void SetValueForBaseControls() { BaseListView = lvData; BasePager = Pager; SmallHeader.Text = $"Nhóm đơn vị: {AgencyGroupServices.GetById(Parameters.Id)?.AgencyGroupName}"; }
protected override void DeleteAction(string id) { AgencyGroupServices.Delete(id.ToInteger()); }
protected override void GetDataList() { BaseCollection = AgencyGroupServices.GetList(); }
protected override void BindOtherValue() { TuNgay.Text = new DateTime(DateTime.Now.Year, 1, 1).ToDateString(); DenNgay.Text = DateTime.Now.ToDateString(); NhomDonVi.BindData(AgencyGroupServices.GetList(), "AgencyGroupID", "AgencyGroupName", "Tất cả"); }
protected void Page_Load(object sender, EventArgs e) { DanhSachNhomDonVi.BindData(AgencyGroupServices.GetList(isShowStatistic: true)); DanhSachLoaiVanBan.BindData(DocumentCategoryServices.GetList()); }
protected override void BindValueToPageControls() { NhomDonVi.BindData(AgencyGroupServices.GetList(), "AgencyGroupID", "AgencyGroupName"); }