protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int masterId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"])) Response.Redirect("MasterClauseList.aspx"); if (!int.TryParse(Request.QueryString["id"], out masterId)) Response.Redirect("MasterClauseList.aspx"); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Data.BLL.ContractMasterBLL masterBLL = new NFMT.Data.BLL.ContractMasterBLL(); NFMT.Common.ResultModel result = masterBLL.Get(user, masterId); if(result.ResultStatus!=0) Response.Redirect("MasterClauseList.aspx"); NFMT.Data.Model.ContractMaster master = result.ReturnValue as NFMT.Data.Model.ContractMaster; if (master == null || master.MasterId <= 0) Response.Redirect("MasterClauseList.aspx"); this.spnMasterEname.InnerHtml = master.MasterEname; this.spnMasterName.InnerHtml = master.MasterName; this.spnMasterStatus.InnerHtml = master.MasterStatusName; this.hidMasterId.Value = master.MasterId.ToString(); this.navigation1.Routes.Add("合约模板列表", "MasterClauseAllot.aspx"); this.navigation1.Routes.Add("条款分配", string.Empty); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int refId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"])) Response.Redirect("MasterClauseAllot.aspx"); if(!int.TryParse(Request.QueryString["id"],out refId)) Response.Redirect("MasterClauseAllot.aspx"); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Data.BLL.ClauseContractBLL refBLL = new NFMT.Data.BLL.ClauseContractBLL(); NFMT.Common.ResultModel result = refBLL.Get(user, refId); if(result.ResultStatus!=0) Response.Redirect("MasterClauseAllot.aspx"); NFMT.Data.Model.ClauseContract masterClause = result.ReturnValue as NFMT.Data.Model.ClauseContract; if(masterClause==null || masterClause.RefId<=0) Response.Redirect("MasterClauseAllot.aspx"); NFMT.Data.BLL.ContractMasterBLL masterBLL = new NFMT.Data.BLL.ContractMasterBLL(); result = masterBLL.Get(user,masterClause.MasterId); if(result.ResultStatus!=0) Response.Redirect("MasterClauseAllot.aspx"); NFMT.Data.Model.ContractMaster master = result.ReturnValue as NFMT.Data.Model.ContractMaster; if(master==null || master.MasterId<=0) Response.Redirect("MasterClauseAllot.aspx"); NFMT.Data.BLL.ContractClauseBLL clauseBLL = new NFMT.Data.BLL.ContractClauseBLL(); result = clauseBLL.Get(user, masterClause.ClauseId); if(result.ResultStatus!=0) Response.Redirect("MasterClauseAllot.aspx"); NFMT.Data.Model.ContractClause clause = result.ReturnValue as NFMT.Data.Model.ContractClause; if(clause==null || clause.ClauseId<=0) Response.Redirect("MasterClauseAllot.aspx"); this.spnClauseEtext.InnerHtml = clause.ClauseEnText; this.spnClauseText.InnerHtml = clause.ClauseText; this.spnMasterEname.InnerHtml = master.MasterEname; this.spnMasterName.InnerHtml = master.MasterName; this.chkIsChose.Checked = masterClause.IsChose; this.txbSort.Value = masterClause.Sort.ToString(); this.hidRefId.Value = masterClause.RefId.ToString(); int masterId = 0; int.TryParse(Request.QueryString["mid"],out masterId); this.navigation1.Routes.Add("合约模板列表", "MasterClauseAllot.aspx"); this.navigation1.Routes.Add("模板条款分配", string.Format("MasterClauseCreate.aspx?id={0}",masterId)); this.navigation1.Routes.Add("分配修改",string.Empty); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 77, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.冻结, NFMT.Common.OperateEnum.解除冻结 }); int masterId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"])) Response.Redirect("ContractMasterList.aspx"); if (int.TryParse(Request.QueryString["id"], out masterId)) { if (masterId == 0) Response.Redirect("ContractMasterList.aspx"); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Data.BLL.ContractMasterBLL bll = new NFMT.Data.BLL.ContractMasterBLL(); NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); result = bll.Get(user, masterId); if (result.ResultStatus != 0) Response.Redirect("ContractMasterList.aspx"); NFMT.Data.Model.ContractMaster master = result.ReturnValue as NFMT.Data.Model.ContractMaster; if (master == null || master.MasterId <= 0) Response.Redirect("ContractMasterList.aspx"); this.spnMasterEname.InnerHtml = master.MasterEname; this.spnMasterName.InnerHtml = master.MasterName; this.spnMasterStatus.InnerHtml = master.MasterStatusName; this.hidMasterId.Value = master.MasterId.ToString(); this.navigation1.Routes.Add("合约模板列表", "ContractMasterList.aspx"); this.navigation1.Routes.Add("合约模板明细", string.Empty); } else Response.Redirect("ContractMasterList.aspx"); } }