• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Utility.VerificationUtility类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Utility.VerificationUtility的典型用法代码示例。如果您正苦于以下问题:C# Utility.VerificationUtility类的具体用法?C# Utility.VerificationUtility怎么用?C# Utility.VerificationUtility使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Utility.VerificationUtility类属于命名空间,在下文中一共展示了Utility.VerificationUtility类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Page_Load

        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;

            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:26,代码来源:FinanceInvoiceCreate.aspx.cs


示例2: Page_Load

        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();
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:33,代码来源:EmpRoleDetail.aspx.cs


示例3: Page_Load

        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;
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:60,代码来源:InvProCreate.aspx.cs


示例4: Page_Load

        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);
                    }
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:27,代码来源:BDStyleDtlCreate.aspx.cs


示例5: Page_Load

        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);
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:30,代码来源:DeliverPlaceUpdate.aspx.cs


示例6: Page_Load

        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() : "";
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:28,代码来源:RepoCreate.aspx.cs


示例7: Page_Load

        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 = "{}";
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:30,代码来源:CashInAllotCorpCreate.aspx.cs


示例8: Page_Load

        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;
                    }
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:29,代码来源:MeasureUnitDetail.aspx.cs


示例9: Page_Load

        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");
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:34,代码来源:ContractClauseUpdate.aspx.cs


示例10: Page_Load

        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();
                    }
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:33,代码来源:BankUpdate.aspx.cs


示例11: Page_Load

        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;
                        }
                    }
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:34,代码来源:RoleUpdate.aspx.cs


示例12: Page_Load

        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;
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:60,代码来源:FinanceInvoiceUpdate.aspx.cs


示例13: Page_Load

        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.查询 });
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:7,代码来源:PayApplyList.aspx.cs


示例14: Page_Load

        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);
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:32,代码来源:FinanceInvoiceInvApplyCreate.aspx.cs


示例15: Page_Load

        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");
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:35,代码来源:ContractMasterUpdate.aspx.cs


示例16: Page_Load

        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);
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:33,代码来源:AuthGroupDetail.aspx.cs


示例17: Page_Load

        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;

            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:60,代码来源:RepoApplyUpdate.aspx.cs


示例18: Page_Load

        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;
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:33,代码来源:StockMoveUpdate.aspx.cs


示例19: Page_Load

        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;
                    }
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:29,代码来源:RateUpdate.aspx.cs


示例20: Page_Load

        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();
                        }
                    }
                }
            }
        }
开发者ID:weiliji,项目名称:NFMT,代码行数:35,代码来源:CurrencyDetail.aspx.cs



注:本文中的Utility.VerificationUtility类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Utils类代码示例发布时间:2022-05-24
下一篇:
C# Utility类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap