private void Initial() { BudContractConsReport byId = this.rptSer.GetById(this.rptId); this.lblDate.Text = byId.InputDate.ToString("yyyy-MM-dd"); this.txtNode.Value = byId.Note; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId2 = pTPrjInfoService.GetById(byId.PrjId); if (byId2 != null) { this.lblPrjName.Text = byId2.PrjName; } System.Collections.Generic.List <BudContractConsTask> list = ( from ct in this.ctSer where ct.RptId == this.rptId select ct).ToList <BudContractConsTask>(); BudContractTaskService budContractTaskService = new BudContractTaskService(); foreach (BudContractConsTask current in list) { if (current.ContractTask == null) { current.ContractTask = budContractTaskService.GetTaskById(current.TaskId); } } this.gvwConsTask.DataSource = list; this.gvwConsTask.DataBind(); }
private void InitContractInfo(string contractId) { if (!string.IsNullOrEmpty(contractId)) { PayoutContractModel model = new PayoutContract().GetModel(contractId); this.txtContractCode.Text = model.ContractCode; this.txtContractName.Text = model.ContractName; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); string prjCode = pTPrjInfoService.GetById(model.PrjGuid).PrjCode; this.txtPrjCode.Text = prjCode; this.txtProject.Text = model.PrjName; this.txtContractMoney.Text = model.ModifiedMoney.ToString(); this.txtSignDate.Text = Convert.ToDateTime(model.SignDate).ToShortDateString(); PayoutPayment payoutPayment = new PayoutPayment(); decimal? paySum = payoutPayment.GetPaySum(contractId); decimal? invoiceSum = this.invoice.GetInvoiceSum(contractId); this.txtPaymentSum.Text = paySum.ToString(); this.txtInvoiceSum.Text = invoiceSum.ToString(); this.txtDiff.Text = Convert.ToString(paySum - invoiceSum); this.txtPayer.Text = model.AName; this.txtPayee.Text = model.CorpName; XPMBasicContactCorp xPMBasicContactCorp = this.GetbasiCorp(model.BName); this.txtTaxNo.Text = xPMBasicContactCorp.TaxCard; this.txtContact.Text = xPMBasicContactCorp.Address + xPMBasicContactCorp.Telephone; this.txtBankCode.Text = xPMBasicContactCorp.AccountBank + xPMBasicContactCorp.BankAccounts; } }
public string GetPrjOrOrg(object inDiaryIdObj) { string inDiaryId = inDiaryIdObj.ToString(); BudIndirectDiaryCost byId = this.cSer.GetById(inDiaryId); if (byId == null) { return(string.Empty); } string result = string.Empty; if (byId.CostType == "P") { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId2 = pTPrjInfoService.GetById(byId.ProjectId); if (byId2 != null) { result = byId2.PrjName; } } else { PTdbmService pTdbmService = new PTdbmService(); PTdbm byId3 = pTdbmService.GetById(byId.ProjectId); if (byId3 != null) { result = byId3.V_bmqc; } } return(result); }
private string GetPrjName() { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(BudgetManage_Report_IndirectCostDetail.prjId); return(byId.PrjName); }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { this.BindGv(); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); this.lblProject.Text = pTPrjInfoService.GetById(this.prjId).PrjName; } }
private void BindPrjName() { if (this.year != "zzjg" && this.prjId != "") { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); this.prjName = byId.PrjName; } }
public void InitPage() { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); if (byId != null) { base.RegisterScript("setIframe('" + byId.PrjName + "')"); } }
protected string GetPrjName(string prjId) { string result = string.Empty; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(prjId); if (byId != null) { result = byId.PrjName; } return(result); }
private void Initial() { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); if (byId != null) { this.lblPrjName.Text = byId.PrjName; } if (this.type == "add") { this.RptId = System.Guid.NewGuid().ToString(); this.txtDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd"); BudContractConsReport budContractConsReport = new BudContractConsReport(); budContractConsReport.RptId = this.RptId; budContractConsReport.IsValid = false; budContractConsReport.PrjId = this.prjId; budContractConsReport.InputUser = PageHelper.QueryUser(this, base.UserCode); this.rptSer.Add(budContractConsReport); return; } if (this.type == "edit") { BudContractConsReport byId2 = this.rptSer.GetById(this.RptId); if (byId2 != null) { this.txtDate.Text = byId2.InputDate.ToString("yyyy-MM-dd"); this.txtNode.Value = byId2.Note; } else { this.txtDate.Text = string.Empty; this.txtNode.Value = string.Empty; } System.Collections.Generic.List <BudContractConsTask> list = ( from ct in this.ctSer where ct.RptId == this.RptId select ct).ToList <BudContractConsTask>(); BudContractTaskService source = new BudContractTaskService(); foreach (BudContractConsTask consTask in list) { if (consTask.ContractTask == null) { consTask.ContractTask = ( from r in source where r.TaskId == consTask.TaskId select r).FirstOrDefault <BudContractTask>(); } } this.SaveToViewState(list); this.BindConsTask(list); } }
protected string GetPrjName() { string result = string.Empty; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(base.Request["PrjCode"]); if (byId != null) { result = byId.PrjName; } return(result); }
private void SowBtnGenerage() { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.hfldPrjId.Value); if (byId.TypeCode.Length == 10 && (this.hfldFlowstate.Value == "-1" || this.hfldFlowstate.Value == "-3") && ConfigHelper.Get("ProjectStandalone") == "0") { this.btnGenerage.Visible = true; return; } this.btnGenerage.Visible = false; }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { this.btnDel.Attributes.Add("onclick", "if(!delCheck()){return false;}"); this.btnUpdate.Attributes.Add("onclick", "if(!checkCount()){return false;}"); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); this.lblProjectName.Text = byId.PrjName; this.hdnProname.Value = byId.PrjName; this.setDataSource(this.prjId); } }
private void BindInfo() { EquEquipment equInfo = this.equipmentSer.GetById(this.equId); this.txtEquName.Text = equInfo.EquName; this.txtEquCode.Text = equInfo.EquCode; BasicCodeList basicCodeList = this.basicCodeSer.GetByType("EquProperty").FirstOrDefault((BasicCodeList pro) => pro.ItemCode == equInfo.EquProperty); if (basicCodeList != null) { this.txtEquProperty.Text = basicCodeList.ItemName; } if (!this.isAdd) { EquShipDayReport byId = this.dayService.GetById(this.dayId); if (byId != null) { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId2 = pTPrjInfoService.GetById(byId.PrjId); if (byId2 != null) { this.txtPrjName.Text = byId2.PrjName; this.hfldPrjId.Value = byId.PrjId; } this.txtReportDate.Text = Common2.GetTime(byId.ReportDate); this.txtConstructionDate.Text = Common2.GetTime(byId.ConstructionDate); this.txtWorkDurationT1.Text = (byId.WorkDurationT1.HasValue ? byId.WorkDurationT1.Value.ToString("0.000") : "0.000"); this.txtDayOilWear.Text = (byId.DayOilWear.HasValue ? byId.DayOilWear.Value.ToString("0.000") : "0.000"); this.txtNotWorkRestDurationT3.Text = (byId.NotWorkRestDurationT3.HasValue ? byId.NotWorkRestDurationT3.Value.ToString("0.000") : "0.000"); this.txtWorkRestDurationT2.Text = (byId.WorkRestDurationT2.HasValue ? byId.WorkRestDurationT2.Value.ToString("0.000") : "0.000"); this.txtNote.Text = byId.Note; this.setOutputValueType(byId); } } else { this.dayId = System.Guid.NewGuid().ToString(); this.txtConstructionDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd"); this.txtReportDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd"); } this.hfldDayId.Value = this.dayId; this.flAnnx.MID = 1901; this.flAnnx.FID = this.hfldDayId.Value; this.flAnnx.Type = 1; }
protected override void OnInit(System.EventArgs e) { if (!string.IsNullOrEmpty(base.Request["prjId"])) { this.prjId = base.Request["prjId"]; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); if (byId != null) { this.prjName = byId.PrjName; } } if (!string.IsNullOrEmpty(base.Request["year"])) { this.year = base.Request["year"]; } base.OnInit(e); }
private void BindPrjName() { if (this.year != "zzjg") { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); if (byId != null) { this.hfldPrjName.Value = byId.PrjName; return; } PTPrjInfoZTBService pTPrjInfoZTBService = new PTPrjInfoZTBService(); PTPrjInfoZTB byId2 = pTPrjInfoZTBService.GetById(this.prjId); if (byId2 != null) { this.hfldPrjName.Value = byId2.PrjName; } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (this.ViewState[TechnologyJDQuery.resourceTable] != null) { this.ViewState[TechnologyJDQuery.resourceTable] = null; } if (base.Request["prjId"] != null) { this.HdnPrjCode.Value = base.Request["prjId"].ToString(); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.HdnPrjCode.Value); if (byId != null) { this.HdnPrjName.Value = byId.PrjName; } this.ViewState["PRJCODE"] = this.HdnPrjCode.Value; this.ViewState["PRJNAME"] = this.HdnPrjName.Value; this.TechnologyBind(this.HdnPrjCode.Value); if (this._Levels.Trim() == "1") { this.BtnAdd.Visible = false; this.BtnUpd.Visible = false; this.BtnDel.Visible = false; } } else { this.BtnAdd.Visible = false; this.BtnUpd.Visible = false; this.BtnDel.Visible = false; this.BtnView.Visible = false; } this.BtnAdd.Attributes["onclick"] = "openEdit('Add')"; this.BtnUpd.Attributes["onclick"] = "openEdit('Upd')"; this.BtnView.Attributes["onclick"] = "openEdit('View')"; this.BtnDel.Attributes["onclick"] = "javascript:if(!confirm('确定要删除当前选中数据吗?')){return false;}"; return; } this._PrjCode = this.ViewState["PRJCODE"].ToString(); }
protected void BindPage() { PayoutInvoiceInfo model = this.invoice.GetModel(base.Request["InvoiceId"]); if (model != null) { PayoutContractModel model2 = new PayoutContract().GetModel(model.ContractID); if (model2 != null) { this.lblContractCode.Text = model2.ContractCode; this.lblContractName.Text = model2.ContractName; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); string prjCode = pTPrjInfoService.GetById(model2.PrjGuid).PrjCode; this.lblPrjCode.Text = prjCode; this.lblPrjName.Text = model2.PrjName; this.lblContractMoney.Text = model2.ModifiedMoney.ToString(); this.lblSignedDate.Text = Convert.ToDateTime(model2.SignDate).ToShortDateString(); PayoutPayment payoutPayment = new PayoutPayment(); decimal? paySum = payoutPayment.GetPaySum(model2.ContractID); decimal? invoiceSum = this.invoice.GetInvoiceSum(model2.ContractID); this.lblPaymentSum.Text = paySum.ToString(); this.lblInvoiceSum.Text = invoiceSum.ToString(); this.lblDiff.Text = Convert.ToString(paySum - invoiceSum); } this.lblAmountMoney.Text = model.Amount.ToString(); this.lblInvoiceNo.Text = model.InvoiceNo; this.lblInvoiceCode.Text = model.InvoiceCode; this.lblParty.Text = model.Payer; this.lblSecond.Text = model.Payee; this.lblInvoiceType.Text = this.getInvoiceType(model.InvoiceType); this.lblTaxNo.Text = model.TaxNo; this.lblTransactor.Text = model.Transactor; this.lblInvoiceDate.Text = model.InvoiceDate.ToString(); this.lblAddress.Text = model.Contact; this.lblBankCode.Text = model.BankCode; this.lblInputUser.Text = model.InputPerson; this.lblInputTime.Text = Convert.ToDateTime(model.InputDate).ToShortDateString(); this.lblNote.Text = model.Notes; this.lblOrganizationCode.Text = model.OrganizationCode; this.lblUpFiled.Text = FileView.FilesBind(1911, model.InvoiceID); } }
public void setTitle() { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); this.hfPrjName.Value = byId.PrjName; if (this.plantype == "payout") { this.hfldAdjunctPath.Value = ConfigHelper.Get("MonthPlanPayOut"); this.lblTitle.Text = this.hfPrjName.Value + " 支出计划"; this.WF1.BusiCode = "091"; return; } if (this.plantype == "income") { this.hfldAdjunctPath.Value = ConfigHelper.Get("MonthPlanIncome"); this.lblTitle.Text = this.hfPrjName.Value + " 收入计划"; this.WF1.BusiCode = "090"; } }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { this.hfldPrjId.Value = this.prjId; this.DataBindPurchase(this.purchase.GetAllPurchase(this.prjId, 0)); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); this.lblProject.Text = pTPrjInfoService.GetById(this.prjId).PrjName; try { if (Request.QueryString["action"].ToString() == "ByProject") { txtConName.Text = Request.QueryString["ContractName"].ToString(); } } catch { } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (base.Request.QueryString["Type"] != null) { this.HdnType.Value = base.Request.QueryString["Type"].ToString(); } if (base.Request.QueryString["Levels"] != null) { this.HdnLevels.Value = base.Request.QueryString["Levels"].ToString(); } if (base.Request["prjId"] != null) { this.HdnPrjCode.Value = base.Request.QueryString["prjId"].ToString(); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.HdnPrjCode.Value); if (byId != null) { this.HdnPrjName.Value = byId.PrjName; } this.ViewState["PRJCODE"] = this.HdnPrjCode.Value; if (this.HdnType.Value == "Edit" || this.HdnType.Value == "Auditing") { this.PPMExpertBind(); } else { this.EntExpertBind(); } } else { this.BtnAdd.Visible = false; } this.BtnView.Attributes["onclick"] = "openview('',1)"; this.BtnAdd.Attributes["onclick"] = "openEdit('Add')"; this.BtnUpd.Attributes["onclick"] = "openEdit('Upd')"; this.BtnDel.Attributes["onclick"] = "deleteConstruct()"; } }
private string GetPrjCode(string prjId) { string result = string.Empty; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(prjId); if (byId != null) { result = byId.PrjCode; } else { PTPrjInfoZTBService pTPrjInfoZTBService = new PTPrjInfoZTBService(); PTPrjInfoZTB byId2 = pTPrjInfoZTBService.GetById(prjId); if (byId2 != null) { result = byId2.PrjCode; } } return(result); }
private void GenerageBudgetByParent(string prjId) { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(prjId); PTPrjInfo parent = pTPrjInfoService.GetParent(prjId); string str = byId.TypeCode.Substring(6, 4); BudTaskService budTaskService = new BudTaskService(); budTaskService.DeleteByProject(prjId); System.Collections.Generic.IList <cn.justwin.Domain.Entities.BudTask> byProject = budTaskService.GetByProject(parent.PrjGuid.Value.ToString(), 999); for (int i = 0; i < byProject.Count; i++) { cn.justwin.Domain.Entities.BudTask budTask = byProject[i]; budTask.PrjId = byId.PrjGuid.Value.ToString(); budTask.TaskId = budTask.TaskId.Substring(0, 9) + str + budTask.TaskId.Substring(13); if (!string.IsNullOrEmpty(budTask.ParentId)) { budTask.ParentId = budTask.ParentId.Substring(0, 9) + str + budTask.ParentId.Substring(13); } budTaskService.Add(budTask); } this.BindGv(); }
private void InitDiary() { BudIndirectDiaryCost byId = this.diarySer.GetById(this.diaryId); this.lblName.Text = byId.Name; this.lblInputDate.Text = byId.InputDate.ToString("yyyy-MM-dd"); this.lblDepartment.Text = byId.Department; this.lblInputUser.Text = byId.InputUser; this.lblIssueBy.Text = byId.IssuedBy; this.lblCode.Text = byId.IndireCode; if (byId.CostType == "P") { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId2 = pTPrjInfoService.GetById(byId.ProjectId); if (byId2 != null) { this.lblPrjName.Text = byId2.PrjName; } } else { this.ltlCostTypeName.Text = "组织机构"; PTdbmService pTdbmService = new PTdbmService(); PTdbm byId3 = pTdbmService.GetById(byId.ProjectId); if (byId3 != null) { this.lblPrjName.Text = byId3.V_bmqc; } } PCPettyCashService pCPettyCashService = new PCPettyCashService(); PCPettyCash byId4 = pCPettyCashService.GetById(byId.PettyCashId); if (byId4 != null) { this.lblPettyCash.Text = byId4.Matter; } }
public void BindGv() { cn.justwin.Domain.BudTaskChange taskChange = cn.justwin.Domain.BudTaskChange.GetTaskChange(this.prjId); if (taskChange != null) { DataTable taskInfo = cn.justwin.Domain.BudTask.GetTaskInfo(this.prjId, this.hfldIsWBSRelevance.Value, string.Empty, string.Empty, string.Empty); this.gvBudget.DataSource = taskInfo; this.gvBudget.DataBind(); if (!string.IsNullOrEmpty(this.prjId)) { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); if (byId != null) { this.lblPrjName.Text = byId.PrjName; } } int wBSFlowState = Project.GetWBSFlowState(this.prjId); bool flag = cn.justwin.Domain.BudTaskChange.IsAllowBudget(this.prjId); this.hfldIsLocked.Value = (!flag).ToString(); Label expr_BC = this.lblPrjName; expr_BC.Text = expr_BC.Text + "(" + Common2.GetStateNoColor(wBSFlowState.ToString()) + ")"; } }
protected void Initial() { if (!string.IsNullOrEmpty(base.Request["ContractID"])) { string text = base.Request["ContractID"]; this.hfldContractId.Value = text; ConIncometContract byContractId = this.conIncometSev.GetByContractId(text); this.hfldPrjGuid.Value = byContractId.Project; this.lblContractName.Text = byContractId.ContractName; } if (!string.IsNullOrEmpty(base.Request["id"])) { string rptId = base.Request["id"]; if (rptId != string.Empty) { this.hfldType.Value = "edit"; } else { this.hfldType.Value = "add"; } this.hfldRptId.Value = rptId; BudContractConsReport byId = this.rptSer.GetById(this.hfldRptId.Value); this.txtDate.Text = byId.InputDate.ToString("yyyy-MM-dd"); this.txtNode.Value = byId.Note; System.Collections.Generic.List <BudContractConsTask> list = ( from ct in this.ctSer where ct.RptId == rptId select ct).ToList <BudContractConsTask>(); BudContractTaskService budContractTaskService = new BudContractTaskService(); DataTable dataTable = new DataTable(); foreach (BudContractConsTask current in list) { if (current.ContractTask == null) { current.ContractTask = budContractTaskService.GetTaskById(current.TaskId); dataTable = cn.justwin.Domain.BudContractTask.GetSingleBudContractTask(this.hfldPrjGuid.Value, current.TaskId); if (dataTable.Rows.Count > 0) { current.ContractTask.Quantity = System.Convert.ToDecimal(dataTable.Rows[0]["Quantity"]); current.ContractTask.Total = new decimal?(System.Convert.ToDecimal(dataTable.Rows[0]["total"])); } } } this.SaveToViewState(list); this.BindConsTask(list); } else { this.hfldRptId.Value = System.Guid.NewGuid().ToString(); } if (!string.IsNullOrEmpty(this.hfldPrjGuid.Value)) { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId2 = pTPrjInfoService.GetById(this.hfldPrjGuid.Value); if (byId2 != null) { this.lblPrjName.Text = byId2.PrjName; this.txtDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd"); } } }
protected void Page_Load(object sender, EventArgs e) { base.Response.Cache.SetNoStore(); if (!string.IsNullOrEmpty(base.Request["pc"])) { this.prjId = base.Request["pc"]; PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.prjId); this.prjCode = byId.PrjCode; } if (!string.IsNullOrEmpty(base.Request["opType"])) { this.opType = base.Request["opType"].Trim(); } if (base.Request["codetype"] != "") { this.DictTypeID = base.Request["codetype"]; } else { base.Response.End(); } if (!this.Page.IsPostBack) { this.TvDict.Nodes.Clear(); this.TvDict.Target = "FraCodeList2"; TreeNode treeNode = new TreeNode(); treeNode.Text = "选择类型"; treeNode.Value = "0"; treeNode.NavigateUrl = "~/EPC/UserControl1/webNullTS.aspx"; string dictTypeID; if ((dictTypeID = this.DictTypeID) != null) { if (dictTypeID == "Img") { treeNode.Text = "图纸类型"; treeNode.NavigateUrl = string.Concat(new string[] { "/OPM/Business_Data/Business_Data_Manage.aspx?w=0&codeid=0&codetype=", base.Request["codetype"].ToString(), "&pc=", base.Request["pc"].ToString(), "&isshowall=false&opType=", this.opType, "&PrjCode=", this.prjCode }); goto IL_271; } if (dictTypeID == "211") { treeNode.NavigateUrl = string.Concat(new string[] { "/OPM/FireManage/FireManageList.aspx?w=0&codeid=0&codetype=", base.Request["codetype"].ToString(), "&pc=", base.Request["pc"].ToString(), "&opType=", this.opType, "&PrjCode=", this.prjCode }); goto IL_271; } } treeNode.NavigateUrl = "~/EPC/UserControl1/webNullTS.aspx"; IL_271: if (this.DictTypeID == "Img") { if (this.opType == "img") { treeNode.Text = "图纸类型"; treeNode.NavigateUrl = string.Concat(new string[] { "/OPM/Business_Data/Business_Data_Main.aspx?w=0&codeid=0&codetype=", base.Request["codetype"].ToString(), "&pc=", base.Request["pc"].ToString(), "&isshowall=false&opType=", this.opType, "&PrjCode=", this.prjCode }); } if (this.opType == "view") { treeNode.Text = "图纸类型"; treeNode.NavigateUrl = string.Concat(new string[] { "/OPM/Business_Data/Business_Data_Main.aspx?w=0&codeid=0&codetype=", base.Request["codetype"].ToString(), "&pc=", base.Request["pc"].ToString(), "&isshowall=false&opType=", this.opType, "&PrjCode=", this.prjCode }); } } treeNode.Target = "FraCodeList3"; treeNode.Selected = true; this.TvDict.Nodes.Add(treeNode); DataTable dataTable = CodingAction.CodeInfoListType(this.DictTypeID); DataTable dt = CodingAction.CodeInfoList(dataTable.Rows[0]["TypeID"].ToString()); this.CreateDictTree(0, dt, treeNode); } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (base.Request["prjId"] != null) { this.HdnPrjCode.Value = base.Request.QueryString["prjId"].ToString(); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); PTPrjInfo byId = pTPrjInfoService.GetById(this.HdnPrjCode.Value); if (byId != null) { this.HdnPrjName.Value = byId.PrjName; } this.ViewState["PRJCODE"] = this.HdnPrjCode.Value; this.ViewState["PRJNAME"] = this.HdnPrjName.Value; this.ViewState["LEVELS"] = base.Request.QueryString["Levels"].ToString().Trim(); this._Levels = this.ViewState["LEVELS"].ToString(); if (this._Levels.Trim() != "") { this.BtnAdd.Attributes.Add("style", "display:none"); this.BtnSelect.Attributes.Add("style", "display:none"); this.BtnUpd.Attributes.Add("style", "display:none"); this.BtnDel.Attributes.Add("style", "display:none"); this.btnSave.Attributes.Add("style", "display:none"); this.btnFiles.Attributes.Add("style", "display:none"); } else { this.BtnUpd.Enabled = false; this.BtnDel.Enabled = false; if (base.Request.QueryString["Type"] == "Auditing") { this.btnFiles.Attributes.Add("style", "display:none"); this.BtnSelect.Attributes.Add("style", "display:none"); this.BtnDel.Attributes.Add("style", "display:none"); this.BtnUpd.Attributes.Add("style", "display:none"); this.BtnAdd.Attributes.Add("style", "display:none"); this.DGrdStandard.Columns[this.DGrdStandard.Columns.Count - 1].Visible = true; } else { this.btnSave.Attributes.Add("style", "display:none"); } } this.StandardBind(); this.BtnSelect.Attributes["onclick"] = "StandardSelect()"; this.BtnAdd.Attributes["onclick"] = "openEdit('Add')"; this.BtnUpd.Attributes["onclick"] = "openEdit('Upd')"; this.BtnView.Attributes["onclick"] = "openEdit('View')"; this.BtnDel.Attributes["onclick"] = "javascript:if(!confirm('确定要删除当前选中数据吗?')){return false;}"; return; } this.BtnAdd.Visible = false; this.BtnSelect.Visible = false; this.BtnAdd.Visible = false; this.BtnUpd.Visible = false; this.BtnDel.Visible = false; this.BtnView.Visible = false; this.btnSave.Visible = false; this.btnFiles.Visible = false; } }