/// <summary> /// get chaxun info /// </summary> /// <returns></returns> MBZSearch GetChaXunInfo() { MBZSearch info = new MBZSearch(); info.SLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("SDate")); info.LLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("EDate")); info.TourCode = Utils.GetQueryStringValue("teamNumber"); info.RouteName = Utils.GetQueryStringValue("lineName"); info.IsDealt = Utils.GetIntSign(Utils.GetQueryStringValue("adjustAccountsType"), -1) > 0; info.SellerId = txt_Seller.SellsID = Utils.GetQueryStringValue(txt_Seller.SellsIDClient); //导游 info.Guide = txt_Guide.GuidName = Utils.GetQueryStringValue(txt_Guide.GuidNameClient); //导游Id info.GuideId = txt_Guide.GuidID = Utils.GetQueryStringValue(txt_Guide.GuidIDClient); //计调 info.Planer = txt_Plan.SellsName = Utils.GetQueryStringValue(txt_Plan.SellsNameClient); //计调Id info.PlanerId = txt_Plan.SellsID = Utils.GetQueryStringValue(txt_Plan.SellsIDClient); //销售 info.SellerName = txt_Seller.SellsName = Utils.GetQueryStringValue(txt_Seller.SellsNameClient); //销售Id info.SellerId = txt_Seller.SellsID = Utils.GetQueryStringValue(txt_Seller.SellsIDClient); info.HeSuanTime1 = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtHeSuanTime1")); info.HeSuanTime2 = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtHeSuanTime2")); return(info); }
/// <summary> /// 初始化 /// </summary> private void DataInit() { this.Title = "财务管理-报销报账"; #region 分页参数 int pageSize = 20; int pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1); int recordCount = 0; #endregion #region 查询实体 MBZSearch queryModel = new MBZSearch(); //团号 queryModel.TourCode = Utils.GetQueryStringValue("txt_teamNumber"); //线路名称 queryModel.RouteName = Utils.GetQueryStringValue("txt_lineName"); //出团时间--始 queryModel.SLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txt_SDate")); //出团时间--终 queryModel.LLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txt_EDate")); //导游 queryModel.Guide = txt_Guide.GuidName = Utils.GetQueryStringValue(txt_Guide.GuidNameClient); //导游Id queryModel.GuideId = txt_Guide.GuidID = Utils.GetQueryStringValue(txt_Guide.GuidIDClient); //计调 queryModel.Planer = txt_Plan.SellsName = Utils.GetQueryStringValue(txt_Plan.SellsNameClient); //计调Id queryModel.PlanerId = txt_Plan.SellsID = Utils.GetQueryStringValue(txt_Plan.SellsIDClient); //销售 queryModel.SellerName = txt_Seller.SellsName = Utils.GetQueryStringValue(txt_Seller.SellsNameClient); //销售Id queryModel.SellerId = txt_Seller.SellsID = Utils.GetQueryStringValue(txt_Seller.SellsIDClient); string baoxiaoorbaozhang = Utils.GetQueryStringValue("isDealt"); //是否已报销或报账 queryModel.IsDealt = (baoxiaoorbaozhang == "1" || baoxiaoorbaozhang == "2"); #endregion IList <MBZInfo> ls = new List <MBZInfo>(); if (baoxiaoorbaozhang == "-2" || baoxiaoorbaozhang == "2")//报销 { ls = new BTour().GetFincBXList( CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, queryModel, SiteUserInfo.DeptId); } else//报账 { ls = new BTour().GetFincBZList( CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, queryModel, SiteUserInfo.DeptId); } if (ls != null && ls.Count > 0) { pan_msg.Visible = false; rpt_list.DataSource = ls; rpt_list.DataBind(); BindPage(pageSize, pageIndex, recordCount); } ExporPageInfoSelect1.Visible = ls != null && ls.Count > 0 && recordCount > pageSize; if (baoxiaoorbaozhang == "-2") { CaoZuoString = "<a data-class=\"a_ExamineA\" href=\"javascript:void(0);\">报销</a>"; } else if (baoxiaoorbaozhang == "2") { CaoZuoString = "<a data-class=\"a_ExamineA\" href=\"javascript:void(0);\">查看</a>"; } else if (baoxiaoorbaozhang == "1") { CaoZuoString = "<a data-class=\"a_Apply\" href=\"javascript:void(0);\">查看</a>"; } else { CaoZuoString = "<a data-class=\"a_Apply\" href=\"javascript:void(0);\">审批</a>"; } }