/* * protected override void OnInit(System.EventArgs e) * { * this.code = base.Request["code"]; * this.userID = base.Request["userID"]; * this.keyID = base.Request["Id"]; * base.OnInit(e); * } */ protected void Page_Load(object sender, EventArgs e) { //1000012 appid userID = WXAPI.getUserIdByCode(code, "1000011"); //"00200002";//WXAPI.getUserIdByCode(code, "1000012"); //"00200002";// if (!IsPostBack) { if (string.IsNullOrEmpty(keyID)) { string strSql = "select top 1 Id from OA_File where Id=ParentId"; DataTable dt = publicDbOpClass.DataTableQuary(strSql); if (dt.Rows.Count > 0) { keyID = dt.Rows[0]["Id"].ToString(); //ParentId.Value = dt.Rows[0]["ParentId"].ToString(); } bindMenuHead(dt.Rows[0]["Id"].ToString(), 0); } else { bindMenuHead(keyID, 1); } } }
protected override void OnInit(System.EventArgs e) { this.code = base.Request["code"]; this.type = base.Request["type"]; if (HttpContext.Current.Session["yhdm"] == null || HttpContext.Current.Session["yhdm"].ToString().Length > 10) { try { string UserID = ""; if (type == "refundingListWX") { UserID = WXAPI.getUserIdByCode(code, "1000020");// "00200002";// } if (type == "qoRefundingListWX") { UserID = WXAPI.getUserIdByCode(code, "1000020");// "00200002";// } if (type == "outReserveWX") { UserID = WXAPI.getUserIdByCode(code, "1000021");// "00200002";// } if (type == "qOutReserveWX") { UserID = WXAPI.getUserIdByCode(code, "1000021");// "00200002";// } if (type == "wantPlanWX") { UserID = WXAPI.getUserIdByCode(code, "1000022");// "00200002";// } if (type == "purchasePlanWX") { UserID = WXAPI.getUserIdByCode(code, "1000022");// "00200002";// } if (type == "purchaseWX") { UserID = WXAPI.getUserIdByCode(code, "1000022");// "00200002";// } if (type == "planPlaitWX") { UserID = WXAPI.getUserIdByCode(code, "1000023");// "00200002";// } if (type == "planActualRptWX") { UserID = WXAPI.getUserIdByCode(code, "1000023");// "00200002";// } HttpContext.Current.Session["yhdm"] = UserID; //HttpContext.Current.Session["PmSet"] = 1; } catch (Exception ex) { } } else { //HttpContext.Current.Session["yhdm"] = "00200002"; //this.Session["PmSet"] = 1; } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (!string.IsNullOrEmpty(userID)) { UserID.Value = userID;//WXAPI.getUserIdByCode(code); } else { UserID.Value = WXAPI.getUserIdByCode(code, "1000010"); //"00200002";// WXAPI.getUserIdByCode(code); //"00200002";// RegisterScript(UserID.Value); } this.BindType(); //绑定任务类型 this.BindPriority(); //绑定任务优先级 if (this.action == "add") { this.KeyId.Value = System.Guid.NewGuid().ToString(); } else if (this.action == "edit") { this.KeyId.Value = Id; this.Bind(Id, action); } } else { string strSubType = submitType.Value.ToString(); if (!string.IsNullOrEmpty(strSubType)) { if (strSubType == "0") { saveData(0); } if (strSubType == "1") { if (Convert.ToDateTime(start_time.Value.ToString()) >= DateTime.Now) { saveData(1); } else { saveData(2); } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (!string.IsNullOrEmpty(userID)) { UserID.Value = userID;//WXAPI.getUserIdByCode(code); } else { UserID.Value = WXAPI.getUserIdByCode(code, "1000010"); //"00200002";//WXAPI.getUserIdByCode(code); //"00200002";//WXAPI.getUserIdByCode(code); } this.KeyId.Value = Id; this.Bind(Id, action); } }
protected override void OnInit(System.EventArgs e) { this.code = base.Request["code"]; if (HttpContext.Current.Session["yhdm"] == null || HttpContext.Current.Session["yhdm"].ToString().Length > 10) { try { string UserID = WXAPI.getUserIdByCode(code, "1000017");// "00200002";// HttpContext.Current.Session["yhdm"] = UserID; } catch (Exception ex) { } } base.OnInit(e); base.InitBasePage(); }
protected override void OnInit(System.EventArgs e) { code = base.Request["code"]; if (HttpContext.Current.Session["yhdm"] == null) { try { string UserID = WXAPI.getUserIdByCode(code, "1000015");// HttpContext.Current.Session["yhdm"] = UserID; } catch { //base.RegisterScript("alert('获取用户信息失败,请稍后重试或联系相关人员!');"); } } base.OnInit(e); base.InitBasePage(); }
protected override void OnInit(System.EventArgs e) { this.code = base.Request["code"]; if (HttpContext.Current.Session["yhdm"] == null || HttpContext.Current.Session["yhdm"].ToString().Length > 10) { try { string UserID = WXAPI.getUserIdByCode(code, "1000014");// "00200002";// HttpContext.Current.Session["yhdm"] = UserID; } catch (Exception ex) { } } //this.userType = base.Request["userType"];//用户类型 //this.status = base.Request["status"];//任务状态 this.userID = HttpContext.Current.Session["yhdm"].ToString(); }
protected override void OnInit(System.EventArgs e) { this.code = base.Request["code"]; this.type = base.Request["type"]; if (HttpContext.Current.Session["yhdm"] == null || HttpContext.Current.Session["yhdm"].ToString().Length > 10) { try { string UserID = WXAPI.getUserIdByCode(code, "1000008");// "00200002";// HttpContext.Current.Session["yhdm"] = UserID; this.Session["PmSet"] = 0; } catch (Exception ex) { } } else { //HttpContext.Current.Session["yhdm"] = "00200002"; //this.Session["PmSet"] = 0; } }