protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!IsPostBack) { PageUtility.SetContentTitle(this, "预算调拨申请单查询"); this.Page.Title = "预算调拨申请单查询"; if (Request["Search"] == null) { int stuffuserID = ((AuthorizationDS.StuffUserRow)Session["StuffUser"]).StuffUserId; this.odsBugetAllocationList.SelectParameters["queryExpression"].DefaultValue = "1!=1"; this.odsBugetAllocationList.SelectParameters["UserID"].DefaultValue = stuffuserID.ToString(); this.odsBugetAllocationList.SelectParameters["PositionID"].DefaultValue = ((AuthorizationDS.PositionRow)Session["Position"]).PositionId.ToString(); } int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.FormBugetAllocation, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); bool HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); if (!HasManageRight) { this.btnExport.Visible = false; } } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "职务权限设置"); this.Page.Title = "职务权限设置"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.UseCase.PositionAuthorization, SystemEnums.OperateEnum.View); int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.UseCase.PositionAuthorization, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); bool hasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); bool hasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); if (!hasViewRight && !hasManageRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } if (!hasManageRight) { this.SetPositionRightBtn.Visible = false; } OUTreeUtility.InitOUTree(this.OrganizationTreeView, true, false, false, false, true, false); } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!IsPostBack) { PageUtility.SetContentTitle(this, "流程管理"); this.Page.Title = "流程管理"; int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.FlowParticipant, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); if (!positionRightBLL.CheckPositionRight(position.PositionId, opManageId)) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } DropDownList ddlDefName = (DropDownList)this.fvFlowConfigure.FindControl("ddlDefName"); DataTable dt = new APHelper().GetDefNames(); ddlDefName.DataSource = dt; ddlDefName.DataValueField = "DefName"; ddlDefName.DataTextField = "DefName"; ddlDefName.DataBind(); ViewState["ddlDefNameTable"] = dt; } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!IsPostBack) { PageUtility.SetContentTitle(this, "方案申请单查询"); this.Page.Title = "方案申请单查询"; int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.FormApply, SystemEnums.OperateEnum.Manage); int opScrapId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.FormApply, SystemEnums.OperateEnum.Scrap); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); HasScrapRight = positionRightBLL.CheckPositionRight(position.PositionId, opScrapId); if (!HasManageRight) { this.hlExport_Good.Visible = false; this.hlExport_Total.Visible = false; } if (Request["Search"] == null) { int stuffuserID = ((AuthorizationDS.StuffUserRow)Session["StuffUser"]).StuffUserId; this.odsApplyList.SelectParameters["queryExpression"].DefaultValue = "1!=1"; this.odsApplyList.SelectParameters["UserID"].DefaultValue = stuffuserID.ToString(); this.odsApplyList.SelectParameters["PositionID"].DefaultValue = ((AuthorizationDS.PositionRow)Session["Position"]).PositionId.ToString(); } hlExport_Good.NavigateUrl = System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/ReportManage/SalesApplyExportReport.aspx?ShowDialog=1&ExportType=Good"; hlExport_Total.NavigateUrl = System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/ReportManage/SalesApplyExportReport.aspx?ShowDialog=1&ExportType=Total"; } }
protected void Page_Load(object sender, System.EventArgs e) { PageUtility.SetContentTitle(this, "销售部核销率(财务专用)"); this.Page.Title = "销售部核销率(财务专用)"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.SalesReimburseRateForFinanceReport, SystemEnums.OperateEnum.View); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); bool HasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); if (!HasViewRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "预提费用期间维护"); this.Page.Title = "预提费用期间维护"; int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.AccruedPeriod, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); if (!positionRightBLL.CheckPositionRight(position.PositionId, opManageId)) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { //判断权限 PageUtility.SetContentTitle(this, "系统公告"); this.Page.Title = "系统公告"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.Bulletin, SystemEnums.OperateEnum.View); int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.Bulletin, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); this.HasManageRight = (positionRightBLL.CheckPositionRight(position.PositionId, opManageId) && Session["ProxyStuffUserId"] == null); this.Opdiv.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "销售费用预算导入"); this.Page.Title = "销售费用预算导入"; int opImportId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.BudgetSalesFee, SystemEnums.OperateEnum.Import); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasImportRight = positionRightBLL.CheckPositionRight(position.PositionId, opImportId); if (!this.HasImportRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "邮件发送历史"); this.Page.Title = "邮件发送历史"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.EmailHistory, SystemEnums.OperateEnum.View); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); if (!this.HasViewRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "管理费用预算"); this.Page.Title = "管理费用预算"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.BudgetManageFee, SystemEnums.OperateEnum.View); int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.BudgetManageFee, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); this.HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); if (!this.HasViewRight && !HasManageRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } this.GVBudget.Columns[8].Visible = (bool)this.ViewState["HasManageRight"]; } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "组织机构管理"); this.Page.Title = "组织机构管理"; //初始化不显示作废组织结构 this.ViewState["ShowActiveOU"] = true; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.UseCase.OrganizationManage, SystemEnums.OperateEnum.View); int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.UseCase.OrganizationManage, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); bool hasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); bool hasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); if (!hasViewRight && !hasManageRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } if (!hasManageRight) { this.AddRootOrganizationUnitBtn.Visible = false; //this.ChangeParentUnitBtn.Visible=false; this.UpdataOrganizationUnitBtn.Visible = false; this.DeleteOrganizationUnitBtn.Visible = false; this.AddOrganizationUnitBtn.Visible = false; this.AddPositionBtn.Visible = false; //this.ChangeOrganizationUnitBtn.Visible = false; this.UpdatePositionBtn.Visible = false; this.DeletePositionBtn.Visible = false; } this.InitTreeView(); } PageUtility.CloseModelDlg(this); }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "销售费用预算"); this.Page.Title = "销售费用预算"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.BudgetSalesFee, SystemEnums.OperateEnum.View); int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.BudgetSalesFee, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); this.HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); if (!this.HasViewRight && !HasManageRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } this.GVBudget.Columns[8].Visible = (bool)this.ViewState["HasManageRight"]; } DropDownList newExpenseItemDDL = (DropDownList)this.BudgetAddFormView.FindControl("newExpenseItemDDL"); newExpenseItemDDL.Attributes.Add("onmouseover", "FixWidth(this)"); }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this, "省份城市管理"); this.Page.Title = "省份城市管理"; int opViewId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.Province, SystemEnums.OperateEnum.View); int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.Province, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasViewRight = positionRightBLL.CheckPositionRight(position.PositionId, opViewId); this.HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); if (!this.HasViewRight && !HasManageRight) { Response.Redirect("~/ErrorPage/NoRightErrorPage.aspx"); return; } } else { PageUtility.CloseModelDlg(this); } }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this.Page, "方案报销审批"); this.Page.Title = "方案报销审批"; int formID = int.Parse(Request["ObjectId"]); this.ViewState["ObjectId"] = formID; FormDS.FormRow rowForm = this.SalesReimburseBLL.GetFormByID(formID)[0]; FormDS.FormReimburseRow rowFormReimburse = this.SalesReimburseBLL.GetFormReimburseByID(formID)[0]; if (rowForm.IsProcIDNull()) { ViewState["ProcID"] = ""; } else { ViewState["ProcID"] = rowForm.ProcID; } ViewState["OrganizationUnitID"] = rowForm.OrganizationUnitID; this.FormNoCtl.Text = rowForm.FormNo; this.ApplyDateCtl.Text = rowForm.SubmitDate.ToShortDateString(); AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID); this.StuffNameCtl.Text = applicant.StuffName; this.PositionNameCtl.Text = new OUTreeBLL().GetPositionById(rowForm.PositionID).PositionName; if (new OUTreeBLL().GetOrganizationUnitById(rowForm.OrganizationUnitID) != null) { this.DepartmentNameCtl.Text = new OUTreeBLL().GetOrganizationUnitById(rowForm.OrganizationUnitID).OrganizationUnitName; } this.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString(); MasterDataBLL masterBll = new MasterDataBLL(); ERS.CustomerRow customer = masterBll.GetCustomerById(rowFormReimburse.CustomerID); this.CustomerNameCtl.Text = customer.CustomerName; this.CustomerTypeCtl.Text = masterBll.GetCustomerTypeById(customer.CustomerTypeID).CustomerTypeName; this.PaymentTypeCtl.Text = masterBll.GetPaymentTypeById(rowFormReimburse.PaymentTypeID).PaymentTypeName; if (!rowFormReimburse.IsRemarkNull()) { this.RemarkCtl.Text = rowFormReimburse.Remark; } if (!rowFormReimburse.IsAttachedFileNameNull()) { this.UCFileUpload.AttachmentFileName = rowFormReimburse.AttachedFileName; } if (!rowFormReimburse.IsRealAttachedFileNameNull()) { this.UCFileUpload.RealAttachmentFileName = rowFormReimburse.RealAttachedFileName; } this.odsInvoice.SelectParameters["FormReimburseID"].DefaultValue = rowFormReimburse.FormReimburseID.ToString(); this.odsReimburseDetails.SelectParameters["FormReimburseID"].DefaultValue = rowFormReimburse.FormReimburseID.ToString(); //审批页面处理&按钮处理 AuthorizationDS.StuffUserRow stuffUser = (AuthorizationDS.StuffUserRow)Session["StuffUser"]; this.ViewState["StuffUserID"] = stuffUser.StuffUserId; if (rowForm.InTurnUserIds.Contains("P" + stuffUser.StuffUserId + "P")) { this.SubmitBtn.Visible = true; this.cwfAppCheck.IsView = false; this.ViewState["IsView"] = false; } else { this.SubmitBtn.Visible = false; this.cwfAppCheck.IsView = true; this.ViewState["IsView"] = true; } if (rowForm.StatusID == (int)SystemEnums.FormStatus.Rejected && stuffUser.StuffUserId == rowForm.UserID) { this.EditBtn.Visible = true; this.ScrapBtn.Visible = true; } else { this.EditBtn.Visible = false; this.ScrapBtn.Visible = false; } if (!rowFormReimburse.IsPaymentDateNull()) { this.txtPaymentDate.Text = rowFormReimburse.PaymentDate.ToString("yyyy-MM-dd"); this.ucPaymentDate.SelectedDate = rowFormReimburse.PaymentDate.ToString("yyyy-MM-dd"); } AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); if (rowForm.StatusID == (int)SystemEnums.FormStatus.ApproveCompleted && positionRightBLL.CheckPositionRight(position.PositionId, (int)SystemEnums.OperateEnum.Other + (int)SystemEnums.BusinessUseCase.FormReimburse)) { this.txtPaymentDate.Visible = false; this.ucPaymentDate.Visible = true; this.btnSavePaymentInfo.Visible = true; } //历史单据 if (rowForm.IsRejectedFormIDNull()) { lblRejectFormNo.Text = "无"; } else { FormDS.FormRow rejectedForm = this.SalesReimburseBLL.GetFormByID(rowForm.RejectedFormID)[0]; this.lblRejectFormNo.Text = rejectedForm.FormNo; this.lblRejectFormNo.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/SalesForm/ReimburseMoneyApproval.aspx?ShowDialog=1&ObjectId=" + rejectedForm.FormID + "','', 'dialogWidth:1000px;dialogHeight:750px;resizable:yes;')"; } //如果是弹出,取消按钮不可见 if (this.Request["ShowDialog"] != null) { if (this.Request["ShowDialog"].ToString() == "1") { this.upButton.Visible = false; this.Master.FindControl("divMenu").Visible = false; this.Master.FindControl("tbCurrentPage").Visible = false; } } } this.cwfAppCheck.FormID = (int)this.ViewState["ObjectId"]; this.cwfAppCheck.ProcID = this.ViewState["ProcID"].ToString(); this.cwfAppCheck.IsView = (bool)this.ViewState["IsView"]; }
protected void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { PageUtility.SetContentTitle(this.Page, "方案报销审批"); this.Page.Title = "方案报销审批"; int formID = int.Parse(Request["ObjectId"]); this.ViewState["ObjectId"] = formID; FormDS.FormRow rowForm = this.SalesReimburseBLL.GetFormByID(formID)[0]; FormDS.FormReimburseRow rowFormReimburse = this.SalesReimburseBLL.GetFormReimburseByID(formID)[0]; //如果单据没有审批完成的话,是不能录入或者查看发货信息的 if (rowForm.StatusID != (int)SystemEnums.FormStatus.ApproveCompleted) { this.gvSKUDetails.Columns[6].Visible = false; this.gvSKUDetails.Columns[5].HeaderStyle.Width = 400; this.DeliveryDIV.Visible = false; this.upDelivery.Visible = false; } if (this.gvSKUDetails.SelectedIndex < 0) { this.fvDelievery.Visible = false; } //如果没有修改权限的话那么不能新增和删除 int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.DeliveryInfo, SystemEnums.OperateEnum.Manage); AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow) this.Session["Position"]; PositionRightBLL positionRightBLL = new PositionRightBLL(); this.HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId); //流程ID if (rowForm.IsProcIDNull()) { ViewState["ProcID"] = ""; } else { ViewState["ProcID"] = rowForm.ProcID; } ViewState["OrganizationUnitID"] = rowForm.OrganizationUnitID; this.FormNoCtl.Text = rowForm.FormNo; this.ApplyDateCtl.Text = rowForm.SubmitDate.ToShortDateString(); AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID); this.StuffNameCtl.Text = applicant.StuffName; this.PositionNameCtl.Text = new OUTreeBLL().GetPositionById(rowForm.PositionID).PositionName; if (new OUTreeBLL().GetOrganizationUnitById(rowForm.OrganizationUnitID) != null) { this.DepartmentNameCtl.Text = new OUTreeBLL().GetOrganizationUnitById(rowForm.OrganizationUnitID).OrganizationUnitName; } this.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString(); MasterDataBLL masterBll = new MasterDataBLL(); ERS.CustomerRow customer = masterBll.GetCustomerById(rowFormReimburse.CustomerID); this.CustomerNameCtl.Text = customer.CustomerName; this.CustomerTypeCtl.Text = masterBll.GetCustomerTypeById(customer.CustomerTypeID).CustomerTypeName; this.PaymentTypeCtl.Text = masterBll.GetPaymentTypeById(rowFormReimburse.PaymentTypeID).PaymentTypeName; if (!rowFormReimburse.IsRemarkNull()) { this.RemarkCtl.Text = rowFormReimburse.Remark; } if (!rowFormReimburse.IsAttachedFileNameNull()) { this.UCFileUpload.AttachmentFileName = rowFormReimburse.AttachedFileName; } if (!rowFormReimburse.IsRealAttachedFileNameNull()) { this.UCFileUpload.RealAttachmentFileName = rowFormReimburse.RealAttachedFileName; } this.odsSKUDetails.SelectParameters["FormReimburseID"].DefaultValue = rowFormReimburse.FormReimburseID.ToString(); this.odsReimburseDetails.SelectParameters["FormReimburseID"].DefaultValue = rowFormReimburse.FormReimburseID.ToString(); //审批页面处理&按钮处理 AuthorizationDS.StuffUserRow stuffUser = (AuthorizationDS.StuffUserRow)Session["StuffUser"]; this.ViewState["StuffUserID"] = stuffUser.StuffUserId; if (rowForm.InTurnUserIds.Contains("P" + stuffUser.StuffUserId + "P")) { this.SubmitBtn.Visible = true; this.cwfAppCheck.IsView = false; this.ViewState["IsView"] = false; } else { this.SubmitBtn.Visible = false; this.cwfAppCheck.IsView = true; this.ViewState["IsView"] = true; } if (rowForm.StatusID == (int)SystemEnums.FormStatus.Rejected && stuffUser.StuffUserId == rowForm.UserID) { this.EditBtn.Visible = true; this.ScrapBtn.Visible = true; } else { this.EditBtn.Visible = false; this.ScrapBtn.Visible = false; } //历史单据 if (rowForm.IsRejectedFormIDNull()) { lblRejectFormNo.Text = "无"; } else { FormDS.FormRow rejectedForm = this.SalesReimburseBLL.GetFormByID(rowForm.RejectedFormID)[0]; this.lblRejectFormNo.Text = rejectedForm.FormNo; this.lblRejectFormNo.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/OtherForm/ReimburseGoodsApproval.aspx?ShowDialog=1&ObjectId=" + rejectedForm.FormID + "','', 'dialogWidth:1000px;dialogHeight:750px;resizable:yes;')"; } //如果是弹出,按钮不可见 if (this.Request["ShowDialog"] != null) { if (this.Request["ShowDialog"].ToString() == "1") { this.upButton.Visible = false; this.gvSKUDetails.Columns[6].Visible = false; this.gvSKUDetails.Columns[5].HeaderStyle.Width = 400; this.Master.FindControl("divMenu").Visible = false; this.Master.FindControl("tbCurrentPage").Visible = false; } } //发货完成按钮权限 opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.DeliveryComplete, SystemEnums.OperateEnum.Other); position = (AuthorizationDS.PositionRow) this.Session["Position"]; if (positionRightBLL.CheckPositionRight(position.PositionId, opManageId) && (rowFormReimburse.IsIsDeliveryCompleteNull() || rowFormReimburse.IsDeliveryComplete == false)) { this.btnDeliveryComplete.Visible = true; } else { this.btnDeliveryComplete.Visible = false; //this.gvDelivery.Visible = false; //this.gvSKUDetails.Columns[6].Visible=false; //this.gvSKUDetails.Columns[5].ItemStyle.Width = 400; } } this.cwfAppCheck.FormID = (int)this.ViewState["ObjectId"]; this.cwfAppCheck.ProcID = this.ViewState["ProcID"].ToString(); this.cwfAppCheck.IsView = (bool)this.ViewState["IsView"]; }