protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 117, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); string direction = Request.QueryString["d"]; if (string.IsNullOrEmpty(direction)) Response.Redirect("FinanceInvoiceList.aspx"); string dirStr = "开出"; if (direction.ToLower() == "in") { dirStr = "收入"; outSelf = 0; inSelf = 1; invoiceDirection = 34; } this.navigation1.Routes.Add("财务发票列表", "FinanceInvoiceList.aspx"); this.navigation1.Routes.Add(string.Format("财务发票{0}", dirStr), string.Empty); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 83, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); string redirectUrl = string.Format("{0}User/EmpRoleList.aspx", NFMT.Common.DefaultValue.NftmSiteName); this.navigation1.Routes.Add("员工角色分配-角色列表", redirectUrl); this.navigation1.Routes.Add("角色员工分配", string.Empty); int id = 0; if (string.IsNullOrEmpty(Request.QueryString["id"])) Response.Redirect(redirectUrl); if (!int.TryParse(Request.QueryString["id"], out id) || id == 0) Response.Redirect(redirectUrl); NFMT.User.BLL.RoleBLL roleBLL = new NFMT.User.BLL.RoleBLL(); var result = roleBLL.Get(user, id); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); NFMT.User.Model.Role role = result.ReturnValue as NFMT.User.Model.Role; if (role != null) { this.txbRoleName.InnerText = role.RoleName; this.hidId.Value = role.RoleId.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { string redirectUrl = "InvoiceProvisionalList.aspx"; if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 61, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); //获取合约与子合约 int subId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out subId)) Response.Redirect(redirectUrl); NFMT.Contract.BLL.ContractSubBLL subBLL = new NFMT.Contract.BLL.ContractSubBLL(); result = subBLL.Get(user, subId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); NFMT.Contract.Model.ContractSub sub = result.ReturnValue as NFMT.Contract.Model.ContractSub; if (sub == null || sub.SubId <= 0) Response.Redirect(redirectUrl); this.curContractSub = sub; NFMT.Data.Model.Currency currency = NFMT.Data.BasicDataProvider.Currencies.FirstOrDefault(temp => temp.CurrencyId == sub.SettleCurrency); if (currency != null && currency.CurrencyId > 0) this.currencyName = currency.CurrencyName; NFMT.Contract.BLL.ContractBLL conBLL = new NFMT.Contract.BLL.ContractBLL(); result = conBLL.Get(user, sub.ContractId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); NFMT.Contract.Model.Contract contract = result.ReturnValue as NFMT.Contract.Model.Contract; if (contract == null || contract.ContractId <= 0) Response.Redirect(redirectUrl); this.curContract = contract; if (contract.TradeDirection == (int)NFMT.Contract.TradeDirectionEnum.Buy) { outSelf = 0; inSelf = 1; invoiceDirection = NFMT.Invoice.InvoiceDirectionEnum.收取; } this.SelectJson(sub.SubId, invoiceDirection); this.navigation1.Routes.Add("临票列表", redirectUrl); this.navigation1.Routes.Add(string.Format("临票新增", invoiceDirection), string.Empty); this.contractExpander1.CurContract = contract; this.contractExpander1.CurContractSub = sub; this.contractExpander1.RedirectUrl = redirectUrl; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 75, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); int pid = 0; if (!string.IsNullOrEmpty(Request.QueryString["pid"])) { if (int.TryParse(Request.QueryString["pid"], out pid)) { if (pid == 0) Response.Redirect("BasicData/BDStyleList.aspx"); NFMT.Data.Model.BDStyle style = NFMT.Data.BasicDataProvider.BDStyles.Single(temp => temp.BDStyleId == pid); this.spnStyleName.InnerHtml = style.BDStyleName; this.spnStyleStatus.InnerHtml = style.BDStyleStatusName; this.hidStyleId.Value = style.BDStyleId.ToString(); this.navigation1.Routes.Add("类型列表", "BDStyleList.aspx"); this.navigation1.Routes.Add("类型明细列表", string.Format("BDStyleDtlList.aspx?id={0}", pid)); this.navigation1.Routes.Add("类型明细添加", string.Empty); } } } }
protected void Page_Load(object sender, EventArgs e) { string redirectStr = string.Format("{0}BasicData/DeliverPlaceList.aspx", NFMT.Common.DefaultValue.NftmSiteName); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 97, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("交货地管理", redirectStr); this.navigation1.Routes.Add("交货地修改", string.Empty); this.hidBDStyleId.Value = ((int)NFMT.Data.StyleEnum.交货地类型).ToString(); int dPId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out dPId) || dPId <= 0) Response.Redirect(redirectStr); NFMT.Data.BLL.DeliverPlaceBLL deliverPlaceBLL = new NFMT.Data.BLL.DeliverPlaceBLL(); result = deliverPlaceBLL.Get(user, dPId); if (result.ResultStatus != 0) Response.Redirect(redirectStr); deliverPlace = result.ReturnValue as NFMT.Data.Model.DeliverPlace; if (deliverPlace == null) Response.Redirect(redirectStr); } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; string redirectUrl = string.Format("{0}WareHouse/CanRepoApplyList.aspx", NFMT.Common.DefaultValue.NftmSiteName); if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 50, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("回购", string.Format("{0}WareHouse/RepoList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("可回购申请列表", redirectUrl); this.navigation1.Routes.Add("回购新增", string.Empty); repoApplyId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out repoApplyId) || repoApplyId <= 0) Response.Redirect(redirectUrl); this.hidid.Value = repoApplyId.ToString(); NFMT.WareHouse.BLL.RepoApplyBLL repoApplyBLL = new NFMT.WareHouse.BLL.RepoApplyBLL(); NFMT.Common.ResultModel result = repoApplyBLL.GetPledgeStockId(user, repoApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); this.hidsids.Value = result.ReturnValue != null ? result.ReturnValue.ToString() : ""; } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; string redirectUrl = "CashInAllotList.aspx"; System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 56, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("公司收款分配", redirectUrl); this.navigation1.Routes.Add("公司收款分配新增", string.Empty); int corpId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out corpId) || corpId <= 0) Response.Redirect(redirectUrl); NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); //公司信息 NFMT.User.Model.Corporation corp = NFMT.User.UserProvider.Corporations.FirstOrDefault(temp => temp.CorpId == corpId); if (corp == null || corp.CorpId <= 0) Response.Redirect(redirectUrl); this.curCorp = corp; this.curSelectedStr = "{}"; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 23, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.冻结, NFMT.Common.OperateEnum.解除冻结 }); this.navigation1.Routes.Add("计量单位管理", string.Format("{0}BasicData/MeasureUnitList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("计量单位明细", string.Empty); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; int id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"])) { if (int.TryParse(Request.QueryString["id"], out id)) { if (id == 0) Response.Redirect("MeasureUnitList.aspx"); NFMT.Data.BLL.MeasureUnitBLL muBLL = new NFMT.Data.BLL.MeasureUnitBLL(); var result = muBLL.Get(user, id); if (result.ResultStatus != 0) Response.Redirect("MeasureUnitList.aspx"); mu = result.ReturnValue as NFMT.Data.Model.MeasureUnit; } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 78, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("合约条款列表", "ContractClauseList.aspx"); this.navigation1.Routes.Add("合约条款修改", string.Empty); int clauseId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"])) Response.Redirect("ContractClauseList.aspx"); if (int.TryParse(Request.QueryString["id"], out clauseId)) { if (clauseId == 0) Response.Redirect("ContractClauseList.aspx"); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Data.Model.ContractClause clause = NFMT.Data.BasicDataProvider.ContractClauses.FirstOrDefault(temp => temp.ClauseId == clauseId); if (clause == null || clause.ClauseId <= 0) Response.Redirect("ContractClauseList.aspx"); this.hidClauseStatus.Value = ((int)clause.ClauseStatus).ToString(); this.txbText.Value = clause.ClauseText; this.txbEText.Value = clause.ClauseEnText; this.hidClauseId.Value = clause.ClauseId.ToString(); } else Response.Redirect("ContractClauseList.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 27, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("银行管理", string.Format("{0}BasicData/BankList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("银行修改", string.Empty); int id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"])) { if (int.TryParse(Request.QueryString["id"], out id)) { if (id == 0) Response.Redirect("BankList.aspx"); NFMT.Data.BLL.BankBLL bBLL = new NFMT.Data.BLL.BankBLL(); var result = bBLL.Get(user, id); if (result.ResultStatus != 0) Response.Redirect("BankList.aspx"); bank = result.ReturnValue as NFMT.Data.Model.Bank; int styleId = (int)NFMT.Data.StyleEnum.CapitalType; this.hidStyleId.Value = styleId.ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 19, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("角色管理", string.Format("{0}User/RoleList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("角色修改", string.Empty); int id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"])) { if (int.TryParse(Request.QueryString["id"], out id)) { if (id == 0) Response.Redirect("RoleList.aspx"); NFMT.User.BLL.RoleBLL roleBLL = new NFMT.User.BLL.RoleBLL(); var result = roleBLL.Get(user, id); if (result.ResultStatus != 0) Response.Redirect("RoleList.aspx"); NFMT.User.Model.Role role = result.ReturnValue as NFMT.User.Model.Role; if (role != null) { this.txbRoleName.Value = role.RoleName; } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 117, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("财务发票列表", "FinanceInvoiceList.aspx"); this.navigation1.Routes.Add("财务发票修改", string.Empty); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); int fundsInvoiceId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out fundsInvoiceId)) Response.Redirect("FinanceInvoiceList.aspx"); //获取财务发票 NFMT.Invoice.BLL.FinanceInvoiceBLL financeInvoiceBLL = new NFMT.Invoice.BLL.FinanceInvoiceBLL(); result = financeInvoiceBLL.Get(user, fundsInvoiceId); if (result.ResultStatus != 0) Response.Redirect("FinanceInvoiceList.aspx"); NFMT.Invoice.Model.FinanceInvoice fundsInvoice = result.ReturnValue as NFMT.Invoice.Model.FinanceInvoice; if (fundsInvoice == null || fundsInvoice.FinanceInvoiceId <= 0) Response.Redirect("FinanceInvoiceList.aspx"); this.curFundsInvoice = fundsInvoice; //获取主发票信息 NFMT.Operate.BLL.InvoiceBLL invoiceBLL = new NFMT.Operate.BLL.InvoiceBLL(); result = invoiceBLL.Get(user, fundsInvoice.InvoiceId); if (result.ResultStatus != 0) Response.Redirect("FinanceInvoiceList.aspx"); NFMT.Operate.Model.Invoice invoice = result.ReturnValue as NFMT.Operate.Model.Invoice; if (invoice == null || invoice.InvoiceId <= 0) Response.Redirect("FinanceInvoiceList.aspx"); this.curInvoice = invoice; NFMT.Invoice.BLL.FinBusInvAllotDetailBLL finBusInvAllotDetailBLL = new NFMT.Invoice.BLL.FinBusInvAllotDetailBLL(); result = finBusInvAllotDetailBLL.GetBIds(user, fundsInvoice.FinanceInvoiceId); if (result.ResultStatus != 0) Response.Redirect("FinanceInvoiceList.aspx"); this.hidsids.Value = result.ReturnValue.ToString(); string dirStr = "开出"; if (invoice.InvoiceDirection == 34) { dirStr = "收入"; outSelf = 0; inSelf = 1; } invoiceDirection = invoice.InvoiceDirection; //title init this.titInvDate.InnerHtml = string.Format("{0}日期:", dirStr); //attach this.attach1.BusinessIdValue = this.curInvoice.InvoiceId; } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 52, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.查询 }); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string redirectUrl = "FinanceInvoiceInvApplyList.aspx"; Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 117, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("财务发票列表", "FinanceInvoiceList.aspx"); this.navigation1.Routes.Add("开票申请列表", redirectUrl); this.navigation1.Routes.Add("财务发票新增", string.Empty); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); invoiceApplyId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out invoiceApplyId)) Response.Redirect(redirectUrl); //获取发票申请 NFMT.Invoice.BLL.InvoiceApplyBLL invoiceApplyBLL = new NFMT.Invoice.BLL.InvoiceApplyBLL(); result = invoiceApplyBLL.GetBIidsByInvApplyId(user, invoiceApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); this.hidsids.Value = result.ReturnValue.ToString(); string dirStr = "开出"; //title init this.titInvDate.InnerHtml = string.Format("{0}日期:", dirStr); } }
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.修改 }); 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.Model.ContractMaster master = NFMT.Data.BasicDataProvider.ContractMasters.FirstOrDefault(temp => temp.MasterId == masterId); if(master==null || master.MasterId <=0) Response.Redirect("ContractMasterList.aspx"); this.txbMasterEname.Value = master.MasterEname; this.txbMasterName.Value = master.MasterName; this.hidMasterStatus.Value =((int)master.MasterStatus).ToString(); this.hidMasterId.Value = master.MasterId.ToString(); this.navigation1.Routes.Add("合约模板列表", "ContractMasterList.aspx"); this.navigation1.Routes.Add("合约模板修改", string.Empty); } else Response.Redirect("ContractMasterList.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 99, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.冻结, NFMT.Common.OperateEnum.解除冻结 }); string redirectUrl = string.Format("{0}User/AuthGroupList.aspx", NFMT.Common.DefaultValue.NftmSiteName); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); this.navigation1.Routes.Add("权限组管理", redirectUrl); this.navigation1.Routes.Add("权限组明细", string.Empty); this.hidContractInOut.Value = ((int)NFMT.Data.StyleEnum.ContractSide).ToString(); this.hidContractLimit.Value = ((int)NFMT.Data.StyleEnum.ContractLimit).ToString(); this.hidTradeBorder.Value = ((int)NFMT.Data.StyleEnum.TradeBorder).ToString(); this.hidTradeDirection.Value = ((int)NFMT.Data.StyleEnum.TradeDirection).ToString(); int authGroupId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out authGroupId) || authGroupId <= 0) Response.Redirect(redirectUrl); NFMT.User.BLL.AuthGroupBLL authGroupBLL = new NFMT.User.BLL.AuthGroupBLL(); result = authGroupBLL.Get(user, authGroupId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); authGroup = result.ReturnValue as NFMT.User.Model.AuthGroup; if (authGroup == null) Response.Redirect(redirectUrl); } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 49, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("回购申请", redirectURL); this.navigation1.Routes.Add("回购申请修改", string.Empty); if (string.IsNullOrEmpty(Request.QueryString["id"])) Response.Redirect(redirectURL); repoApplyId = 0; if (!int.TryParse(Request.QueryString["id"], out repoApplyId)) Response.Redirect(redirectURL); this.hidrepoApplyId.Value = repoApplyId.ToString(); NFMT.WareHouse.BLL.RepoApplyDetailBLL repoApplyDetailBLL = new NFMT.WareHouse.BLL.RepoApplyDetailBLL(); NFMT.Common.ResultModel result = repoApplyDetailBLL.Load(user, repoApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectURL); List<NFMT.WareHouse.Model.RepoApplyDetail> details = result.ReturnValue as List<NFMT.WareHouse.Model.RepoApplyDetail>; if(details== null) Response.Redirect(redirectURL); System.Text.StringBuilder sb = new System.Text.StringBuilder(); foreach (NFMT.WareHouse.Model.RepoApplyDetail detail in details) { sb.Append(detail.StockId); if (details.IndexOf(detail) < details.Count - 1) sb.Append(","); } this.hidsids.Value = sb.ToString(); NFMT.WareHouse.BLL.RepoApplyBLL repoApplyBLL = new NFMT.WareHouse.BLL.RepoApplyBLL(); result = repoApplyBLL.Get(user, repoApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectURL); NFMT.WareHouse.Model.RepoApply repoApply = result.ReturnValue as NFMT.WareHouse.Model.RepoApply; if (repoApply == null) Response.Redirect(redirectURL); NFMT.Operate.BLL.ApplyBLL applyBLL = new NFMT.Operate.BLL.ApplyBLL(); result = applyBLL.Get(user, repoApply.ApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectURL); apply = result.ReturnValue as NFMT.Operate.Model.Apply; this.hidDeptId.Value = apply.ApplyDept.ToString(); this.txbMemo.Value = apply.ApplyDesc; } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; string redirectUrl = string.Format("{0}WareHouse/StockMoveList.aspx", NFMT.Common.DefaultValue.NftmSiteName); if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 46, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("移库", redirectUrl); this.navigation1.Routes.Add("移库修改", string.Empty); int stockMoveId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out stockMoveId) || stockMoveId <= 0) Response.Redirect(redirectUrl); this.hidid.Value = stockMoveId.ToString(); NFMT.WareHouse.BLL.StockMoveBLL stockMoveBLL = new NFMT.WareHouse.BLL.StockMoveBLL(); NFMT.Common.ResultModel result = stockMoveBLL.Get(user, stockMoveId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); NFMT.WareHouse.Model.StockMove stockMove = result.ReturnValue as NFMT.WareHouse.Model.StockMove; if (stockMove == null) Response.Redirect(redirectUrl); this.hidStockMoveApplyId.Value = stockMove.StockMoveApplyId.ToString(); //this.hidDPId.Value = stockMove.DeliverPlaceId.ToString(); this.txbMoveMemo.Value = stockMove.MoveMemo; } }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 26, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("汇率管理", string.Format("{0}BasicData/RateList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("汇率修改", string.Empty); int rateId = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"])) { if (int.TryParse(Request.QueryString["id"], out rateId)) { if (rateId == 0) Response.Redirect("RateList.aspx"); NFMT.Data.BLL.RateBLL rateBLL = new NFMT.Data.BLL.RateBLL(); var result = rateBLL.Get(user, rateId); if (result.ResultStatus != 0) Response.Redirect("RateList.aspx"); rate = result.ReturnValue as NFMT.Data.Model.Rate; } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 25, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.冻结, NFMT.Common.OperateEnum.解除冻结 }); this.navigation1.Routes.Add("币种管理", string.Format("{0}BasicData/CurrencyList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("币种明细", string.Empty); int id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"])) { if (int.TryParse(Request.QueryString["id"], out id)) { if (id == 0) Response.Redirect("ContactList.aspx"); NFMT.Data.BLL.CurrencyBLL currencyBLL = new NFMT.Data.BLL.CurrencyBLL(); var result = currencyBLL.Get(Utility.UserUtility.CurrentUser, id); if (result.ResultStatus != 0) Response.Redirect("ContactList.aspx"); NFMT.Data.Model.Currency currency = result.ReturnValue as NFMT.Data.Model.Currency; if (currency != null) { this.txbCurencyShort.InnerText = currency.CurencyShort; this.txbCurrencyFullName.InnerText = currency.CurrencyFullName; this.txbCurrencyName.InnerText = currency.CurrencyName; this.txbCurrencyStatus.InnerText =Convert.ToString(currency.CurrencyStatus); this.hidId.Value = currency.CurrencyId.ToString(); } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 65, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.修改 }); this.navigation1.Routes.Add("价外票", redirectUrl); this.navigation1.Routes.Add("价外票修改", string.Empty); deptId = user.DeptId; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out invoiceId) || invoiceId <= 0) Response.Redirect(redirectUrl); //获取invoice result = invoiceBLL.Get(user, invoiceId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); NFMT.Operate.Model.Invoice invoice = result.ReturnValue as NFMT.Operate.Model.Invoice; if (invoice == null) Response.Redirect(redirectUrl); //通过invoiceId获取SI result = sIBLL.GetSIbyInvoiceId(user, invoiceId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); NFMT.Invoice.Model.SI si = result.ReturnValue as NFMT.Invoice.Model.SI; if (si == null) Response.Redirect(redirectUrl); SIId = si.SIId; //获取价外票明细 result = sIDetailBLL.GetSIDetailForUpdate(user, si.SIId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); this.hidDetails.Value = Newtonsoft.Json.JsonConvert.SerializeObject(result.ReturnValue); InvoiceName = invoice.InvoiceName; InvoiceDate = invoice.InvoiceDate; InvoiceBala = invoice.InvoiceBala; CurrencyId = invoice.CurrencyId; OutCorpId = invoice.OutCorpId; InCorpId = invoice.InCorpId; Memo = invoice.Memo; ChangeCurrencyId = si.ChangeCurrencyId; ChangeRate = si.ChangeRate; ChangeBala = si.ChangeBala; PayDept = si.PayDept; //attach this.attach1.BusinessIdValue = invoice.InvoiceId; } }
protected void Page_Load(object sender, EventArgs e) { string redirectUrl = string.Format("{0}DoPrice/StopLossList.aspx", NFMT.Common.DefaultValue.NftmSiteName); if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 92, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.提交审核, NFMT.Common.OperateEnum.作废, NFMT.Common.OperateEnum.撤返, NFMT.Common.OperateEnum.执行完成, NFMT.Common.OperateEnum.执行完成撤销 }); this.navigation1.Routes.Add("止损", redirectUrl); this.navigation1.Routes.Add("止损明细", string.Empty); NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); int stopLossId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out stopLossId)) Response.Redirect(redirectUrl); //获取止损信息 NFMT.DoPrice.BLL.StopLossBLL stopLossBLL = new NFMT.DoPrice.BLL.StopLossBLL(); result = stopLossBLL.Get(user, stopLossId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); stopLoss = result.ReturnValue as NFMT.DoPrice.Model.StopLoss; if (stopLoss == null) Response.Redirect(redirectUrl); int stopLossApplyId = stopLoss.StopLossApplyId; //获取止损申请 NFMT.DoPrice.BLL.StopLossApplyBLL stopLossApplyBLL = new NFMT.DoPrice.BLL.StopLossApplyBLL(); result = stopLossApplyBLL.Get(user, stopLossApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); stopLossApply = result.ReturnValue as NFMT.DoPrice.Model.StopLossApply; if (stopLossApply == null) Response.Redirect(redirectUrl); measureUnit = NFMT.Data.BasicDataProvider.MeasureUnits.SingleOrDefault(a => a.MUId == stopLossApply.MUId); currency = NFMT.Data.BasicDataProvider.Currencies.SingleOrDefault(a => a.CurrencyId == stopLossApply.CurrencyId); //获取主申请 NFMT.Operate.BLL.ApplyBLL applyBLL = new NFMT.Operate.BLL.ApplyBLL(); result = applyBLL.Get(user, stopLossApply.ApplyId); if (result.ResultStatus != 0) Response.Redirect(redirectUrl); apply = result.ReturnValue as NFMT.Operate.Model.Apply; if (apply == null) Response.Redirect(redirectUrl); System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); string json = serializer.Serialize(stopLoss); this.hidModel.Value = json; } }
protected void Page_Load(object sender, EventArgs e) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 90, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("财务发票分配", string.Format("{0}Invoice/FinBusInvAllotList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); this.navigation1.Routes.Add("财务发票列表", string.Empty); }
protected void Page_Load(object sender, EventArgs e) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 53, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("财务付款列表", "PaymentList.aspx"); this.navigation1.Routes.Add("财务付款--付款申请列表", string.Empty); }
protected void Page_Load(object sender, EventArgs e) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 56, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("公司收款分配", "CashInAllotCorpList.aspx"); this.navigation1.Routes.Add("可收款分配公司列表", string.Empty); }
protected void Page_Load(object sender, EventArgs e) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 29, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("区域管理", string.Format("{0}BasicData/AreaList.aspx", NFMT.Common.DefaultValue.NftmSiteName)); 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, 25, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.查询 }); } }
protected void Page_Load(object sender, EventArgs e) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 105, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("点价申请延期", "PricingApplyDelayList.aspx"); this.navigation1.Routes.Add("可延期点价申请列表", string.Empty); }
protected void Page_Load(object sender, EventArgs e) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 79, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.查询 }); this.navigation1.Routes.Add("子合约列表", "SubList.aspx"); this.navigation1.Routes.Add("合约列表", string.Empty); }
protected void Page_Load(object sender, EventArgs e) { NFMT.Common.UserModel user = Utility.UserUtility.CurrentUser; NFMT.Common.ResultModel result = new NFMT.Common.ResultModel(); string redirectUrl = string.Format("{0}WareHouse/StockReceiptUpdateList.aspx", NFMT.Common.DefaultValue.NftmSiteName); this.hidBDStyleId.Value = ((int)NFMT.Data.StyleEnum.报关状态).ToString(); if (!IsPostBack) { Utility.VerificationUtility ver = new Utility.VerificationUtility(); ver.JudgeOperate(this.Page, 131, new List<NFMT.Common.OperateEnum>() { NFMT.Common.OperateEnum.录入 }); this.navigation1.Routes.Add("库存净重回执修改列表", redirectUrl); this.navigation1.Routes.Add("库存净重回执修改", string.Empty); detailId = 0; if (string.IsNullOrEmpty(Request.QueryString["id"]) || !int.TryParse(Request.QueryString["id"], out detailId) || detailId <= 0) this.WarmAlert("参数错误", redirectUrl); stockId = 0; if (string.IsNullOrEmpty(Request.QueryString["stockId"]) || !int.TryParse(Request.QueryString["stockId"], out stockId) || stockId <= 0) this.WarmAlert("参数错误", redirectUrl); stockLogId = 0; if (string.IsNullOrEmpty(Request.QueryString["stockLogId"]) || !int.TryParse(Request.QueryString["stockLogId"], out stockLogId) || stockLogId <= 0) this.WarmAlert("参数错误", redirectUrl); NFMT.WareHouse.BLL.StockBLL stockBLL = new NFMT.WareHouse.BLL.StockBLL(); result = stockBLL.Get(user, stockId); if (result.ResultStatus != 0) this.WarmAlert(result.Message, redirectUrl); stock = result.ReturnValue as NFMT.WareHouse.Model.Stock; if (stock == null) this.WarmAlert("获取库存出错", redirectUrl); NFMT.WareHouse.BLL.StockNameBLL stockNameBLL = new NFMT.WareHouse.BLL.StockNameBLL(); result = stockNameBLL.Get(user, stock.StockNameId); if (result.ResultStatus != 0) this.WarmAlert(result.Message, redirectUrl); stockName = result.ReturnValue as NFMT.WareHouse.Model.StockName; if (stockName == null) this.WarmAlert("获取业务单号出错", redirectUrl); NFMT.WareHouse.BLL.StockReceiptDetailBLL stockReceiptDetailBLL = new NFMT.WareHouse.BLL.StockReceiptDetailBLL(); result = stockReceiptDetailBLL.Get(user, detailId); if (result.ResultStatus != 0) this.WarmAlert(result.Message, redirectUrl); stockReceiptDetail = result.ReturnValue as NFMT.WareHouse.Model.StockReceiptDetail; if (stockName == null) this.WarmAlert("获取仓库回执出错", redirectUrl); this.spStockStatus.InnerText = ((NFMT.WareHouse.StockStatusEnum)stock.StockStatus).ToString(); } }