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 IList <Project> GetProjectByYear(int year, IList <string> idList, IList <string> stateList, string pcode, string pname) { IList <Project> list = new List <Project>(); IList <PTPrjInfo> first = this.GetProjectByLevel(year, idList, stateList, 1, pcode, pname); IList <PTPrjInfo> subList = this.GetProjectByLevel(year, idList, stateList, 2, pcode, pname); IList <PTPrjInfo> parent = new PTPrjInfoService().GetParent(subList); foreach (PTPrjInfo info in (from p in first.Union <PTPrjInfo>(parent).Distinct <PTPrjInfo>() orderby p.StartDate descending select p).ToList <PTPrjInfo>()) { string item = info.PrjGuid.Value.ToString().ToUpper(); string prjName = info.PrjName; if (!idList.Contains(item)) { prjName = prjName + "(无权限)"; } Project project = new Project { Id = item, Text = prjName }; if (this.IsExitsSubProject(info.TypeCode, subList)) { project.State = "closed"; } else { project.State = "open"; } project.Children = null; list.Add(project); } return(list); }
public IList <Project> GetSublevelByState(int year, IList <string> idList, string state, string pcode, string pname) { IList <Project> list = new List <Project>(); PTPrjInfoService service = new PTPrjInfoService(); List <PTPrjInfo> first = new List <PTPrjInfo>(); int num = (idList.Count / 0x5dc) + 1; for (int i = 0; i < num; i++) { List <string> theIdList = idList.Skip <string>((i * 0x5dc)).Take <string>(0x5dc).ToList <string>(); List <PTPrjInfo> second = (from p in service where (((theIdList.Contains(p.PrjGuid.ToString()) && (p.PrjState.ToString() == state)) && (p.StartDate.HasValue && (p.StartDate.Value.Year <= year))) && (!p.EndDate.HasValue || (p.EndDate.Value.Year >= year))) && (p.PrjCode.Contains(pcode) || p.PrjName.Contains(pname)) select p).ToList <PTPrjInfo>(); first = first.Union <PTPrjInfo>(second).ToList <PTPrjInfo>(); } foreach (PTPrjInfo info in first) { Project item = new Project { Id = info.PrjGuid.Value.ToString(), Text = info.PrjName, State = "open", Children = null }; list.Add(item); } return(list); }
protected void btnDelete_Click(object sender, System.EventArgs e) { try { PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); System.Collections.Generic.List <string> listFromJson = JsonHelper.GetListFromJson(this.hfldCheckedIds.Value); listFromJson.Reverse(); foreach (string current in listFromJson) { if (pTPrjInfoService.GetCountProject(current) > 0) { base.RegisterScript("top.ui.show('请删除子项目');"); return; } SelfEventAction.SuperDelete(current, "PT_PrjInfo_ZTB_Detail", "SetUpFlowState"); } ProjectInfo.Del(listFromJson); this.BindGv(); base.RegisterScript("top.ui.show('删除成功');"); } catch { base.RegisterScript("top.ui.show('删除失败');"); } }
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 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); }
public void CommitEvent(object key) { Guid id = new Guid(key.ToString()); PTPrjInfoZTBService service = new PTPrjInfoZTBService(); PTPrjInfoService service2 = new PTPrjInfoService(); PTPrjInfoZTB byId = service.GetById(id); if (byId.PrjState.ToString() == ProjectParameter.WinBid) { service2.ChangePrjInfo(byId, 5, 1); } }
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 IList <PTPrjInfo> GetProjectByLevel(int year, IList <string> idList, IList <string> stateList, int level, string pcode, string pname) { PTPrjInfoService service = new PTPrjInfoService(); List <PTPrjInfo> first = new List <PTPrjInfo>(); int num = (idList.Count / 0x5dc) + 1; for (int i = 0; i < num; i++) { List <string> theIdList = idList.Skip <string>((i * 0x5dc)).Take <string>(0x5dc).ToList <string>(); List <PTPrjInfo> second = (from p in service where (((((stateList.Contains(p.PrjState.Value.ToString()) && (p.TypeCode.Length == (level * 5))) && (p.StartDate.HasValue && (p.StartDate.Value.Year <= year))) && (!p.EndDate.HasValue || (p.EndDate.Value.Year >= year))) && theIdList.Contains(p.PrjGuid.ToString())) && (p.IsValid == "1")) && (p.PrjCode.Contains(pcode) || p.PrjName.Contains(pname)) select p).ToList <PTPrjInfo>(); first = first.Union <PTPrjInfo>(second).ToList <PTPrjInfo>(); } return(first); }
protected void initPageInfo() { if (!string.IsNullOrEmpty(base.Request["PrjId"])) { string g = base.Request["PrjId"]; PTPrjInfoZTB byId = new PTPrjInfoZTBService().GetById(new System.Guid(g)); if (byId.ParentTypeCode != null) { PTPrjInfo entityByTypeCode = new PTPrjInfoService().GetEntityByTypeCode(byId.ParentTypeCode); if (entityByTypeCode != null) { this.dropParentProject.Items.FindByText(entityByTypeCode.PrjName).Selected = true; } } } }
public static IList <SelectProject> GetProject(string userCode, IList <string> stateList, string code, string name) { IList <string> busiDataId = PrivHelper.GetBusiDataId("project", userCode); PTPrjInfoService service = new PTPrjInfoService(); List <SelectProject> first = new List <SelectProject>(); int num = (busiDataId.Count / 0x5dc) + 1; for (int i = 0; i < num; i++) { List <string> theIdList = busiDataId.Skip <string>((i * 0x5dc)).Take <string>(0x5dc).ToList <string>(); List <SelectProject> second = (from p in service where (((stateList.Contains(p.PrjState.ToString()) && theIdList.Contains(p.PrjGuid.ToString())) && (p.IsValid == "1")) && p.PrjCode.Contains(code)) && p.PrjName.Contains(name) select new SelectProject { Id = p.PrjGuid.Value.ToString(), Code = p.PrjCode, Name = p.PrjName, TypeCode = p.TypeCode, OwnerCode = p.OwnerCode.ToString(), Place = p.PrjPlace, State = p.PrjState.Value, Order = p.StartDate.Value.ToString("yyyyMMdd"), IsParent = true }).ToList <SelectProject>(); first = first.Union <SelectProject>(second).ToList <SelectProject>(); } for (int j = 0; j < first.Count; j++) { SelectProject project = first[j]; if (project.TypeCode.Length == 10) { // PTPrjInfo parent = service.GetParent(project.Id); //if (parent != null) //{ // project.Order = parent.StartDate.Value.ToString("yyyyMMdd") + project.Order; //} DataSet ds = service.GetParentDS(project.Id); if (ds.Tables[0].Rows.Count > 0) { string str = Convert.ToDateTime(ds.Tables[0].Rows[0]["StartDate"]).ToString("yyyyMMdd"); project.Order = project.TypeCode + str;//ds.Tables[0].Rows[0]["StartDate"].ToString("yyyyMMdd") + project.Order; } if (ExistParent(project.TypeCode, first)) { project.IsParent = false; } } else { project.Order = project.TypeCode + "99999999"; } } return((from p in first orderby p.Order descending select p).ToList <SelectProject>()); }
protected void BindProject(string prjId) { PTPrjInfoZTB byId = new PTPrjInfoZTBService().GetById(new System.Guid(prjId)); if (byId != null) { this.txtPrjName.Text = byId.PrjName; this.hfldPrjState.Value = byId.PrjState.ToString(); } PTPrjInfo byId2 = new PTPrjInfoService().GetById(prjId); if (byId2 != null) { this.txtPrjName.Text = byId2.PrjName; this.hfldPrjState.Value = byId2.PrjState.ToString(); } }
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 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); } }
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(); }
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); }
protected void btnDelete_Click(object sender, System.EventArgs e) { try { PTPrjInfoZTBService pTPrjInfoZTBService = new PTPrjInfoZTBService(); PTPrjInfoService pTPrjInfoService = new PTPrjInfoService(); System.Collections.Generic.IList <string> list = CsvHelper.ToList(this.hfldCheckedIds.Value); for (int i = 0; i < list.Count; i++) { string id = list[i]; pTPrjInfoZTBService.Delete(id); pTPrjInfoService.Delete(id); } this.bindGv(); base.RegisterScript("top.ui.show('删除成功');"); } catch (System.Exception) { base.RegisterScript("top.ui.show('删除失败');"); } }