private void searchorderbyids(out List <ChargeMoneyTypeDetails> ShouTypeSummaryList, out List <ChargeMoneyTypeDetails> FuTypeSummaryList) { int RoomFeeOrderID = WebUtil.GetIntByStr(this.hdRoomFeeOrderID.Value, 0); List <int> HistoryIDList = new List <int>(); List <int> ChargeState = new List <int>(); ShouTypeSummaryList = new List <ChargeMoneyTypeDetails>(); FuTypeSummaryList = new List <ChargeMoneyTypeDetails>(); Foresight.DataAccess.Ui.DataGrid dg = ChargeMoneyTypeDetails.GetHistorySummaryGroupByTypeName(new List <int>(), new List <int>(), DateTime.MinValue, DateTime.MinValue, string.Empty, int.MinValue, int.MinValue, RoomFeeOrderID, true, HistoryIDList, UserID: WebUtil.GetUser(this.Context).UserID); ChargeMoneyTypeDetails[] list = dg.rows as ChargeMoneyTypeDetails[]; ShouTypeSummaryList = list.Where(p => p.RealCost > 0).ToList(); dg = ChargeMoneyTypeDetails.GetDepositSummaryGroupByTypeName(new List <int>(), new List <int>(), DateTime.MinValue, DateTime.MinValue, 1, string.Empty, RoomFeeOrderID, true, HistoryIDList, UserID: WebUtil.GetUser(this.Context).UserID); ChargeMoneyTypeDetails[] list4 = dg.rows as ChargeMoneyTypeDetails[]; FuTypeSummaryList = list4.Where(p => p.RealCost > 0).ToList(); }
private Foresight.DataAccess.Ui.DataGrid LoadRoomFeeHistoryList() { try { int CompanyID = 0; List <int> RoomIDList = new List <int>(); List <int> ProjectIDList = new List <int>(); int FeeID = 0; int RoomFeeOrderID = 0; DateTime StartChargeTime = DateTime.MinValue; DateTime EndChargeTime = DateTime.MinValue; bool IncludIsCharged = false; bool IncludePreCharge = false; bool IncludeDepoistCharge = false; int DepoistStatus = int.MinValue; int PreChargeStatus = int.MinValue; long startRowIndex = 0; int pageSize = int.MaxValue; int[] ChargeManID = new int[] { }; int[] ChargeSummaryID = new int[] { }; int[] ChargeTypeID = new int[] { }; int[] CategoryID = new int[] { }; bool IncludeFooter = true; List <int> ChargeStatusIDList = (new int[] { 1, 3, 4, 6, 7 }).ToList(); bool IsRoomFeeSearch = true; bool IsCuiShou = false; int ContractID = 0; bool ExcludeCuiShou = false; List <int> HistoryIDList = new List <int>(); if (!string.IsNullOrEmpty(hdHistoryIDList.Value)) { HistoryIDList = JsonConvert.DeserializeObject <List <int> >(hdHistoryIDList.Value); } Foresight.DataAccess.Ui.DataGrid dg = ViewRoomFeeHistory.GetViewRoomFeeHistoryGridByRoomID(RoomIDList, ProjectIDList, FeeID, StartChargeTime, EndChargeTime, IncludIsCharged, IncludePreCharge, IncludeDepoistCharge, DepoistStatus, PreChargeStatus, CompanyID, ChargeManID, ChargeSummaryID, ChargeTypeID, CategoryID, ChargeStatusIDList, RoomFeeOrderID, IsRoomFeeSearch, IsCuiShou, ContractID, "order by [PrintNumber] desc", startRowIndex, pageSize, HistoryIDList, ExcludeCuiShou, IncludeFooter: true, UserID: WebUtil.GetUser(this.Context).UserID); return(dg); } catch (Exception ex) { LogHelper.WriteError("CreateFeeOrder.aspx", "visit: LoadRoomFeeHistoryList", ex); return(null); } }
private void searchorderbyids(out List <ChargeMoneyTypeDetails> ShouTypeSummaryList, out List <ChargeMoneyTypeDetails> FuTypeSummaryList) { int RoomFeeOrderID = 0; string HistoryIDs = this.hdHistoryIDList.Value; List <int> HistoryIDList = new List <int>(); if (!string.IsNullOrEmpty(HistoryIDs)) { HistoryIDList = JsonConvert.DeserializeObject <List <int> >(HistoryIDs); } List <int> ChargeState = new List <int>(); ShouTypeSummaryList = new List <ChargeMoneyTypeDetails>(); FuTypeSummaryList = new List <ChargeMoneyTypeDetails>(); Foresight.DataAccess.Ui.DataGrid dg = ChargeMoneyTypeDetails.GetHistorySummaryGroupByTypeName(new List <int>(), new List <int>(), DateTime.MinValue, DateTime.MinValue, string.Empty, int.MinValue, int.MinValue, RoomFeeOrderID, true, HistoryIDList, UserID: WebUtil.GetUser(this.Context).UserID); ChargeMoneyTypeDetails[] list = dg.rows as ChargeMoneyTypeDetails[]; ShouTypeSummaryList = list.Where(p => p.RealCost > 0).ToList(); dg = ChargeMoneyTypeDetails.GetDepositSummaryGroupByTypeName(new List <int>(), new List <int>(), DateTime.MinValue, DateTime.MinValue, 1, string.Empty, RoomFeeOrderID, true, HistoryIDList, UserID: WebUtil.GetUser(this.Context).UserID); ChargeMoneyTypeDetails[] list4 = dg.rows as ChargeMoneyTypeDetails[]; FuTypeSummaryList = list4.Where(p => p.RealCost > 0).ToList(); }
private void loadservicetypetree(HttpContext context) { var typeList = ServiceType.GetServiceTypes().Where(p => p.ParentID <= 1).ToArray(); var items = typeList.Select(p => { var dic = new Dictionary <string, object>(); dic["id"] = p.ID; dic["name"] = p.ServiceTypeName; dic["_parentId"] = p.ParentID < 1 ? 0 : p.ParentID; return(dic); }).ToList(); var topDic = new Dictionary <string, object>(); topDic["id"] = 1; topDic["name"] = new SiteConfig().CompanyName; topDic["_parentId"] = 0; items.Add(topDic); var dg = new Foresight.DataAccess.Ui.DataGrid(); dg.rows = items; dg.total = 1; dg.page = 1; WebUtil.WriteJson(context, dg); }