本文整理汇总了C#中Utility.VerificationUtility.JudgeOperate方法的典型用法代码示例。如果您正苦于以下问题:C# Utility.VerificationUtility.JudgeOperate方法的具体用法?C# Utility.VerificationUtility.JudgeOperate怎么用?C# Utility.VerificationUtility.JudgeOperate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility.VerificationUtility
的用法示例。
在下文中一共展示了Utility.VerificationUtility.JudgeOperate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
}
示例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();
}
}
}
示例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;
}
}
示例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);
}
}
}
}
示例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);
}
}
示例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() : "";
}
}
示例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 = "{}";
}
}
示例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;
}
}
}
}
示例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");
}
}
示例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();
}
}
}
}
示例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;
}
}
}
}
}
示例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;
}
}
示例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.查询 });
}
示例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);
}
}
示例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");
}
}