protected void Page_Load(object sender, EventArgs e) { BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { searchData(0); } }
protected void Page_Load(object sender, EventArgs e) { BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { SearchData_Gwtz(); SearchData_gzzs(); } }
protected void Page_Load(object sender, EventArgs e) { BLL = new ZlctBLL(this.WorkUser); this.btnRefresh.Click += new EventHandler(btnRefresh_Click); //SearchData_gzzs(); if (!this.IsPostBack) { SearchData_gzyj(); } }
protected void Page_Load(object sender, EventArgs e) { gzzsId = Request.QueryString["gzzsId"]; BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { BindGzzsxx(); SearchData(0); } }
public void DeleteSzgkjc_Dxjb_YzJb(HttpContext context) { ZlctBLL BLL = new ZlctBLL(appUser); string id = context.Request.QueryString["id"]; FunctionResult re = BLL.DeleteSzgkjc_Dxjb_YzJb(id); if (re.Status != FunctionResultStatus.Error) { context.Response.Write("{\"Type\":\"Success\",\"Message\":\"" + re.Message.Message + "\"}"); } else { context.Response.Write("{\"Type\":\"Failure\",\"Message\":\"" + re.Message.Message + "\"}"); } }
protected void Page_Load(object sender, EventArgs e) { BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { PageIndex = Request.QueryString["pageIndex"]; int pageIndex = 0; if (!string.IsNullOrEmpty(PageIndex) && int.TryParse(PageIndex, out pageIndex)) { SearchData(pageIndex); } else { SearchData(0); } } }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; int allRecordCount = 0; string sortname = context.Request.Params["sortname"]; string sortorder = context.Request.Params["sortorder"]; int page = Convert.ToInt32(context.Request.Params["page"]) - 1; // 系统的索引从0开始,所以此处需要减1 int pagesize = Convert.ToInt32(context.Request.Params["pagesize"]); string fromWhere = context.Request.QueryString["fromwhere"]; object sessionAppUser = context.Session[ConfigManager.GetSignInAppUserSessionName()]; BLL = new ZlctBLL((AppUser)sessionAppUser); //排序 string orderby = @" " + sortname + " " + sortorder + " "; //通过检索翻译 生成查询条件 FilterTranslator ft = ContextExtension.GetGridData(context); //分页 DataTable dt = new DataTable(); switch (fromWhere) { case "Gzzs_List": dt = BLL.RetrieveGzzs_List(ft, pagesize, page, orderby, out allRecordCount).Result; break; case "Zshf_all_List": dt = BLL.RetrieveZshf_all_List(ft, pagesize, page, orderby, out allRecordCount).Result; break; case "DxjbSendRecords_List": dt = BLL.RetrieveDxjbSendRecords_List(ft, pagesize, page, orderby, out allRecordCount).Result; break; case "YzDxjb_List": dt = BLL.RetrieveYzDxjb_List(ft, pagesize, page, orderby, out allRecordCount).Result; break; } ft.Parms.Clear(); string result = JSONHelper.DataTableToJson(dt); json = @"{""Rows"":[" + result + @"],""Total"":""" + allRecordCount + @"""}"; context.Response.Write(json); context.Response.End(); }
protected void Page_Load(object sender, EventArgs e) { BLL = new ZlctBLL(WorkUser); ZshfId = Request.QueryString["zshfId"]; if (!this.IsPostBack) { DataTable dt = BLL.ReadSzgkjc_Gzhf(ZshfId).Result; if (dt.Rows.Count > 0) { List <IDataItem> list = dt.Rows[0].ToDataItem(); this.SetControlValue(list); string gzzsId = list.GetDataItem("GzzsId").ItemData; dt = BLL.ReadSzgkjc_Gzzs(gzzsId).Result; list = dt.Rows[0].ToDataItem(); this.SetControlValue(list); } BLL.UpdateZlhfToReadedState(ZshfId); } }
protected void Page_Load(object sender, EventArgs e) { BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { Src = "Txl_Tree.aspx?type=dxjb&dxjbId="; List <IDataItem> list = new List <IDataItem>(); DataTable dt = BLL.RetrieveDxjb_List(list).Result; if (dt.Rows.Count > 0) { this.ddl_yzjb.Items.Add(new ListItem("--请选择短信简报模板--", "")); foreach (DataRow item in dt.Rows) { ListItem li = new ListItem(item["Jbmc"].ToString2(), item["DxjbId"].ToString2()); this.ddl_yzjb.Items.Add(li); } } else { this.ddl_yzjb.Items.Add(new ListItem("--没有短信简报模板--", "")); } } }
protected void Page_Load(object sender, EventArgs e) { Id = Request.QueryString["id"]; BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { DataTable dt = BLL.ReadSzgkjc_Dxjb_Records(Id).Result; List <IDataItem> list = dt.Rows[0].ToDataItem(); bool isZdfs = list.GetDataItem("IsDsfs").ItemData.ToBoolean(); int week = list.GetDataItem("EveryWeekOne").ItemData.ToInt32(); int month = list.GetDataItem("EveryMonthOne").ItemData.ToInt32(); int quarter = list.GetDataItem("EveryQuarterOne").ItemData.ToInt32(); string fslx = ""; if (isZdfs) { if (week > 0) { fslx += "自动发送,每周发送一次"; } else if (month > 0) { fslx += "自动发送,每月发送一次"; } else { fslx += "自动发送,每季度发送一次"; } } else { fslx = "手动发送"; } this.db_fslx.Text = fslx; this.SetControlValue(list); } }
protected void Page_Load(object sender, EventArgs e) { Operate = Request.QueryString["operate"]; GzzsId = Request.QueryString["gzzsId"]; Src = "Txl_Tree.aspx?type=gzzs&gzzsId=" + GzzsId; BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { //if (Operate == "edit") //{ // DataTable dt = BLL.ReadSzgkjc_Gzzs(GzzsId).Result; // if (dt.Rows.Count > 0) // { // List<IDataItem> list = dt.Rows[0].ToDataItem(); // this.SetControlValue(list); // } // dt = BLL.RetrieveZshfListByGzzsId(GzzsId).Result; // if (dt.Rows.Count > 0) // { // string hfrIds = ","; // foreach (DataRow row in dt.Rows) // { // hfrIds += row["ZshfrId"] + ","; // } // this.txtReceiverIds.Text = hfrIds; // } //} //else //{ this.txtReceiverIds.Text = ","; //this.db_ZsrName.Text = this.WorkUser.UserName; //this.dp_Zssj.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm"); //} } }
protected void Page_Load(object sender, EventArgs e) { DxjbId = Request.QueryString["dxjbId"]; BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { PageIndex = Request.QueryString["pageIndex"]; this.lblPageIndex.Text = PageIndex; DataTable dt = BLL.ReadSzgkjc_Dxjb(DxjbId).Result; List <IDataItem> list = dt.Rows[0].ToDataItem(); this.SetControlValue(list); bool isDsfs = bool.Parse(dt.Rows[0]["IsDsfs"].ToString()); if (isDsfs) { this.db_fslx.Text = "定时发送"; } else { this.db_fslx.Text = "手动发送"; } int month = 0, week = 0, quarter = 0; week = int.Parse(dt.Rows[0]["EveryWeekOne"].ToString2()); month = int.Parse(dt.Rows[0]["EveryMonthOne"].ToString2()); quarter = int.Parse(dt.Rows[0]["EveryQuarterOne"].ToString2()); if (week > 0) { this.db_fszq.Text = "每周发送一次,"; } if (month > 0) { this.db_fszq.Text += "每月发送一次,"; } if (quarter > 0) { this.db_fszq.Text += "每季度发送一次"; } this.db_fszq.Text = this.db_fszq.Text.TrimEnd(','); string jbnr = list.GetDataItem("Jbnr").ItemData; string jbnrNew = string.Copy(jbnr); List <SqlPara> sqls = WebCommon.ConvertSql(jbnr); if (sqls.Count > 0) { foreach (SqlPara item in sqls) { string str = BLL.ExecuteSql(item.executeSql); item.newStr = str; jbnrNew = jbnrNew.Replace(item.oldStr, item.newStr); } } this.db_Jbnr.Text = jbnrNew; dt = BLL.ReadSzgkjc_DxjbAndSjml(DxjbId).Result; if (dt.Rows.Count > 0) { string txt = ",", txt2 = ""; foreach (DataRow item in dt.Rows) { txt += item["SjmlID"] + ","; txt2 += item["SjmlName"] + "【" + item["sjmlMobile"] + "】,"; } this.db_fsdx.Text = txt2.Trim(new char[] { ',' }); } } }
protected void Page_Load(object sender, EventArgs e) { Operate = Request.QueryString["operate"]; DxjbId = Request.QueryString["dxjbId"]; PageIndex = Request.QueryString["pageIndex"]; Src = "Txl_Tree.aspx?type=dxjb&dxjbId=" + DxjbId; BLL = new ZlctBLL(this.WorkUser); if (!this.IsPostBack) { this.lblPageIndex.Text = PageIndex; if (Operate == "edit") { content = "短信简报修改"; DataTable dt = BLL.ReadSzgkjc_Dxjb(DxjbId).Result; List <IDataItem> list = dt.Rows[0].ToDataItem(); this.SetControlValue(list); if (list.GetDataItem("EveryWeekOne").ItemData.ToInt32(0) > 0) { this.db_dsfs_1.Checked = true; } else if (list.GetDataItem("EveryMonthOne").ItemData.ToInt32(0) > 0) { this.db_dsfs_2.Checked = true; } else if (list.GetDataItem("EveryQuarterOne").ItemData.ToInt32(0) > 0) { this.db_dsfs_3.Checked = true; } dt = BLL.ReadSzgkjc_DxjbAndSjml(DxjbId).Result; if (dt.Rows.Count > 0) { string txt = ",", txt2 = ""; foreach (DataRow item in dt.Rows) { txt += item["SjmlID"] + ","; txt2 += item["SjmlName"] + "【" + item["sjmlMobile"] + "】,"; } this.txtReceiverIds.Text = txt; this.db_fsdx.Text = txt2.Trim(new char[] { ',' }); } if (!this.db_IsDsfs.Checked) { this.db_dsfs_1.Enabled = false; this.db_dsfs_2.Enabled = false; this.db_dsfs_3.Enabled = false; } else { this.db_dsfs_1.Enabled = true; this.db_dsfs_2.Enabled = true; this.db_dsfs_3.Enabled = true; } } else { content = "预制短信简报"; this.txtReceiverIds.Text = ","; if (db_IsDsfs.Checked) { this.db_dsfs_1.Enabled = true; this.db_dsfs_2.Enabled = true; this.db_dsfs_3.Enabled = true; } else { this.db_dsfs_1.Enabled = false; this.db_dsfs_2.Enabled = false; this.db_dsfs_3.Enabled = false; } } //db_IsDsfs_CheckedChanged(sender,e); } }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string type = context.Request["type"]; try { GgfzInfoModel model = new GgfzInfoModel(); object sessionAppUser = context.Session[ConfigManager.GetSignInAppUserSessionName()]; WorkUser = (AppUser)sessionAppUser; DataTable dt; // BLL = new SzgcBLL(WorkUser); bll = new SzqyBLL(WorkUser); switch (type) { case "getZzmc": json = bll.getZTreeOfZzmc(); break; case "getTxlTree": ZlctBLL zlctBLL = new ZlctBLL(WorkUser); string gzzsId = context.Request.QueryString["gzzsId"]; if (String.IsNullOrEmpty(gzzsId)) { json = zlctBLL.ZTreeJsonOfTxl(model); } else { json = zlctBLL.ZTreeJsonOfTxl(model, gzzsId); } break; case "getTxlCombox": zlctBLL = new ZlctBLL(WorkUser); dt = zlctBLL.ZComboxJsonOfTxl(); json = Dtb2Json(dt);; break; case "getTxlTree_Dxjb": zlctBLL = new ZlctBLL(WorkUser); string dxjbId = context.Request.QueryString["dxjbId"]; if (String.IsNullOrEmpty(dxjbId)) { json = zlctBLL.ZTreeJsonOfDxjb(model); } else { json = zlctBLL.ZTreeJsonOfDxjb(model, dxjbId); } break; case "getYear": GetYear(context); break; case "getMonth": GetMonth(context); break; case "ssdq": json = GetSsdq(context); break; case "QySsdq": json = this.GetQySsdq(context); break; case "xmxx": //File.AppendAllText("E:\\test.txt", "111"); json = GetXmxx(context); break; case "QueryProjectList": json = QueryProjectList(context); break; case "SetLxxmGIS": json = SetLxxmGIS(context); break; case "rysd": json = this.GetQySsdq(context); //json = GetRysd(context); break; case "roleRights": json = GetRoleRights(context); break; case "saveRoles": json = SaveRoles(context); break; case "saveRoleRights": json = SaveRoleRights(context); break; case "getUserRights": json = GetUserRights(context); break; case "getXxcjMenu": json = GetXxcjMenu(context); break; case "getIndexTopMenu": json = GetIndexTopMenu(context); break; case "xxgx_csjk": json = GetXxgx_Csjk(context); break; //往省厅上传项目信息 case "uploadToStTBProjectInfo": json = uploadToStTBProjectInfo(context); break; //往省厅上传项目补充信息 case "uploadToStTBProjectAddInfo": json = uploadToStTBProjectAddInfo(context); break; //从一站式申报平台按uuid下行安监、质监申报数据 case "downloadByUuid": json = downloadByUuid(context); break; //下载企业注册人员数据 case "downloadCorpRegStaff": json = downloadCorpRegStaff(context); break; //下载企业资质信息 case "downloadCorpCert": json = downloadCorpCert(context); break; //从部里下载企业资质信息 case "downloadCorpCertFromMohurd": json = downloadCorpCertFromMohurd(context); break; //保存合同备案-工程类型 case "saveHtbaPrjType": json = saveHtbaPrjType(context); break; //保存合同备案-联合体 case "saveHtbaUnion": json = saveHtbaUnion(context); break; } } catch (Exception ex) { json = ex.Message; } context.Response.Write(json); context.Response.End(); }