public void bindPagedata(string typecode) { PrjInfoModel pIM = new PrjInfoModel(); pIM = PrjInfoAction.GetSingleInfo(typecode.ToString()); this.TextBind(pIM); }
private PrjInfoModel GetValue() { PrjInfoModel prjInfoModel = new PrjInfoModel(); if (this.txtStartDate.Text != "") { prjInfoModel.StartDate = Convert.ToDateTime(this.txtStartDate.Text.ToString()); } if (this.txtEndDate.Text != "") { prjInfoModel.EndDate = Convert.ToDateTime(this.txtEndDate.Text.ToString()); } prjInfoModel.PrjCode = this.txtPrjNum.Text; prjInfoModel.PrjName = this.txtPrjName.Text; prjInfoModel.Owner = this.txtprjUnit.Text; prjInfoModel.PrjKindClass = this.drop_PrjKindClass.SelectedValue; prjInfoModel.Remark = "1"; prjInfoModel.PrjCost = this.DropDownList1.SelectedValue; try { prjInfoModel.PrjPlace = this.ddt_Area.SelectedValue; } catch { } prjInfoModel.PrjState = this.ddt_state.SelectedValue; return(prjInfoModel); }
public void BindGv() { this.hfldPrjId.Value = base.Request.QueryString["prjguid"].ToString(); this.hfldPurchaseChecked.Value = string.Empty; StringBuilder stringBuilder = new StringBuilder(); if (this.hfldPrjId.Value.ToString() != "") { PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.hfldPrjId.Value); if (modelByPrjGuid != null) { this.prjName = modelByPrjGuid.PrjName; } this.setTitle(); string text = " where 1=1 "; if (!string.IsNullOrEmpty(this.hfldPrjId.Value)) { text += string.Format(" and Project = '{0}' ", this.hfldPrjId.Value); } stringBuilder.Append(" SELECT Con_Incomet_Payment.*, \r\n (\r\n SELECT ISNULL(sum(inmoney),0.00) \r\n FROM Fund_Prj_Accoun_Income \r\n WHERE Fund_Prj_Accoun_Income.FlowState='1' AND Con_Incomet_Payment.id=Fund_Prj_Accoun_Income.ContractID\r\n ) as Cinmoney,\r\n ContractName,UserCodes,\r\n Con_Incomet_Contract.Project \r\n FROM Con_Incomet_Payment \r\n LEFT JOIN Con_Incomet_Contract ON Con_Incomet_Payment.ContractID=Con_Incomet_Contract.ContractID"); stringBuilder.Append(text); stringBuilder.Append(" ORDER BY Con_Incomet_Payment.InputDate "); DataTable dataSource = SqlHelper.ExecuteQuery(CommandType.Text, stringBuilder.ToString(), null); this.gvBudget.DataSource = dataSource; } this.gvBudget.DataBind(); }
public void BindGv() { this.hfldPrjId.Value = base.Request.QueryString["prjguid"].ToString(); this.hfldPurchaseChecked.Value = string.Empty; if (this.hfldPrjId.Value.ToString() != "") { PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.hfldPrjId.Value); if (modelByPrjGuid != null) { this.prjName = modelByPrjGuid.PrjName; } this.setTitle(); string text = " FlowState=1 and Total is not null "; if (!string.IsNullOrEmpty(this.hfldPrjId.Value)) { text += string.Format(" and ProjectId = '{0}' ", this.hfldPrjId.Value); } if (!string.IsNullOrEmpty(this.txtSignDate.Text)) { text += string.Format(" and InputDate >='{0}'", this.txtSignDate.Text); } if (!string.IsNullOrEmpty(this.txtEndDate.Text)) { text += string.Format(" and InputDate <='{0}'", this.txtEndDate.Text); } if (!string.IsNullOrEmpty(this.txtmoneyPrj.Text.Trim())) { text += string.Format(" and Name like '%{0}%'", this.txtmoneyPrj.Text.Trim()); } this.gvBudget.DataSource = OrganizationDiary.getDtByWhere(text); } this.gvBudget.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(base.Request["ic"])) { this.ic = base.Request["ic"]; this.hdnCode.Value = base.Request.QueryString["ic"].ToString(); } this.mainModel = this.mainBll.GetModel(new Guid(this.hdnCode.Value.ToString())); this.lblExplain.Text = this.mainModel.ReMark.ToString(); this.lbluser.Text = PageHelper.QueryUser(this, this.mainModel.RPayUserCode); this.lblcode.Text = this.mainModel.RPayCode.ToString(); this.DateInTime.Text = Convert.ToDateTime(this.mainModel.RPayDate).ToShortDateString(); if (!string.IsNullOrEmpty(this.mainModel.PrjGuid.ToString())) { PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.mainModel.PrjGuid.ToString()); if (modelByPrjGuid != null) { this.lblProject.Text = modelByPrjGuid.PrjName; } } DataTable list = this.detailBll.GetList(" RpayMainId='" + this.mainModel.RPayMainID + "'"); this.gvwPlan.DataSource = list; this.gvwPlan.DataBind(); this.flAnnx.MID = 1023; this.flAnnx.FID = this.ic; this.flAnnx.Type = 1; this.lblPrintDate.Text = DateTime.Now.ToShortDateString(); this.lblPrintPeople.Text = PageHelper.QueryUser(this, base.UserCode); }
public void InitPage() { PtYhmcBll ptYhmcBll = new PtYhmcBll(); SendNodteModel sendNoteModel = this.sendNote.GetSendNoteModel(base.Request.QueryString["ic"]); this.lblremark.Text = sendNoteModel.remark; this.lblsnCode.Text = sendNoteModel.snCode; this.lblsnAddUser.Text = ptYhmcBll.GetModelById(sendNoteModel.snAddUser).v_xm; this.lblsnAddTime.Text = sendNoteModel.snAddTime.ToString(); PrjInfoModel modelByPrjGuid = this.pTPrjInfoBll.GetModelByPrjGuid(sendNoteModel.prjCode.ToString()); if (modelByPrjGuid != null) { this.lblProjectName.Text = modelByPrjGuid.PrjName; } this.lblBllProducer.Text = ptYhmcBll.GetModelById(base.UserCode).v_xm; this.lblPrintDate.Text = DateTime.Now.ToShortDateString(); this.hdGuid.Value = sendNoteModel.snId; string userName = this.am.GetUserName(sendNoteModel.Limits.ToString()); this.labLimit.Text = userName; string[] snId = new string[] { sendNoteModel.snId }; this.ViewState["DataTable"] = this.sendGoods.GetResourceBypncode(snId); this.BindGv(); }
public void SetTitle() { if (base.Request.QueryString["prjGuid"] != null) { PrjInfoModel modelByPrjGuid = this.ptPrjInfoBll.GetModelByPrjGuid(base.Request.QueryString["prjGuid"]); this.lblTitle.Text = modelByPrjGuid.PrjName; } }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { if (this.action.Equals("Add")) { this.hfldPid.Value = System.Guid.NewGuid().ToString(); this.txtScode.Text = System.DateTime.Now.ToString("yyyyMMddHHmmss"); this.txtInputDate.Text = System.DateTime.Today.ToShortDateString(); this.txtPerson.Text = PageHelper.QueryUser(this, base.UserCode); DataTable storageStockDataSource = this.storageStock.GetStorageStockDataSource(string.Empty); this.ViewState[this.stockDataSourceName] = storageStockDataSource; this.gvwStorageStock.DataSource = storageStockDataSource; this.gvwStorageStock.DataBind(); if (this.manageMode != SmEnum.SmSetValue.ParallelMode) { string totalCode = this.treasury.GetTotalCode(); this.hfldTrea.Value = totalCode; this.txtTrea.Text = this.GetTreasuryNameByCode(totalCode); } } else { StorageModel model = this.storage.GetModel(this.storageCode); this.hfldPid.Value = model.sid; this.txtScode.Text = model.scode; this.txtInputDate.Text = model.intime.ToShortDateString(); this.txtPerson.Text = model.person; this.hfldTrea.Value = model.tcode; this.txtTrea.Text = this.GetTreasuryNameByCode(model.tcode); this.txtExplain.Text = model.explain; this.txttrustee.Text = model.Trustee; this.txtsupervisor.Text = model.Supervisor; this.hfldIsFirst.Value = (model.isfirst ? "1" : "0"); if (!string.IsNullOrEmpty(model.project)) { this.hfldProject.Value = model.project; PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(model.project); if (modelByPrjGuid != null) { this.txtProject.Value = modelByPrjGuid.PrjName; } } DataTable storageStockDataSource2 = this.storageStock.GetStorageStockDataSource(this.storageCode); this.ViewState[this.stockDataSourceName] = storageStockDataSource2; this.gvwStorageStock.DataSource = storageStockDataSource2; this.gvwStorageStock.DataBind(); if (storageStockDataSource2.Rows.Count > 0) { this.hfldPurchaseCode.Value = storageStockDataSource2.Rows[0]["linkcode"].ToString(); } } } this.flAnnx.MID = 1806; this.flAnnx.FID = this.hfldPid.Value; this.flAnnx.Type = 1; }
private PrjInfoModel GetTextValue() { PrjInfoModel prjInfoModel = new PrjInfoModel(); prjInfoModel.PrjCode = this.txt_PrjCode.Text; prjInfoModel.PrjGuid = new Guid(this.ViewState["INFOCODE"].ToString()); prjInfoModel.PrjName = this.txt_PrjName.Text.Trim(); prjInfoModel.StartDate = Convert.ToDateTime(this.txt_StartDate.Text); prjInfoModel.EndDate = Convert.ToDateTime(this.txt_EndDate.Text); prjInfoModel.ComputeClass = "1"; if (this.txt_PrjCost.Text.Trim().Length > 0) { prjInfoModel.PrjCost = this.txt_PrjCost.Text; } else { prjInfoModel.PrjCost = "0"; } if (this.txt_Duration.Text.Trim().Length > 0) { prjInfoModel.Duration = this.txt_Duration.Text; } else { prjInfoModel.Duration = "0"; } prjInfoModel.QualityClass = this.drop_QualityClass.SelectedValue; prjInfoModel.PrjKindClass = this.drop_PrjKindClass.SelectedValue; prjInfoModel.Area = this.ddt_Area.SelectedValue; prjInfoModel.Remark = this.txt_Remark.Text; prjInfoModel.Owner = this.txt_Owner.Value; prjInfoModel.Counsellor = this.txt_Counsellor.Text; prjInfoModel.Designer = this.txt_Designer.Text; prjInfoModel.Inspector = this.txt_Inspector.Text; prjInfoModel.PrjInfo = this.txt_PrjInfo.Text; prjInfoModel.PrjState = this.ddt_state.SelectedValue; prjInfoModel.OwnerCode = this.HdnOwnerCode.Value; prjInfoModel.PrjPlace = this.txt_PrjPlace.Text.Trim(); prjInfoModel.Rank = this.drop_zzGrade.SelectedValue; prjInfoModel.BudgetWay = this.drop_ysType.SelectedValue; prjInfoModel.ContractWay = this.drop_cbType.SelectedValue; prjInfoModel.PayCondition = this.drop_Payment.SelectedValue; prjInfoModel.TenderWay = this.drop_zbType.SelectedValue; prjInfoModel.PayWay = this.drop_jsType.SelectedValue; prjInfoModel.KeyPart = this.drop_PrimaryGrade.SelectedValue; prjInfoModel.WorkUnit = this.Txt_WorkUnit.Value; prjInfoModel.LinkMan = this.Txt_LinkMan.Text; prjInfoModel.PrjManager = this.HideManagerCode.Value + "-" + this.Txt_PrjManager.Value; prjInfoModel.BuildingType = this.drop_jzType.SelectedValue; prjInfoModel.TotalHouseNum = this.Txt_TotalHouseNum.Text; prjInfoModel.BuildingArea = this.Txt_BuildingArea.Text; prjInfoModel.UsegrounArea = this.Txt_UsegrounArea.Text; prjInfoModel.UndergroundArea = this.Txt_UndergroundArea.Text; prjInfoModel.PrjFundInfo = this.Txt_PrjFundInfo.Text; prjInfoModel.OtherStatement = this.Txt_OtherStatement.Text; return(prjInfoModel); }
public static PrjInfoModel GetSingleInfo(string Code) { PrjInfoModel model = new PrjInfoModel(); foreach (DataRow row in GetSingle(Code).Rows) { model.PrjCode = row["PrjCode"].ToString(); model.PrjGuid = new Guid(row["PrjGuid"].ToString()); model.PrjName = row["PrjName"].ToString(); try { model.StartDate = (DateTime)row["StartDate"]; model.EndDate = (DateTime)row["EndDate"]; } catch (Exception) { } model.ComputeClass = row["ComputeClass"].ToString(); model.RationClass = row["RationClass"].ToString(); model.PrjCost = row["PrjCost"].ToString(); model.ContractSum = row["ContractSum"].ToString(); model.Duration = row["Duration"].ToString(); model.QualityClass = row["QualityClass"].ToString(); model.Area = row["Area"].ToString(); model.PrjKindClass = row["PrjKindClass"].ToString(); model.PrjPlace = row["PrjPlace"].ToString(); model.Remark = row["Remark"].ToString(); model.FileName = row["FileName"].ToString(); model.FileURL = row["FileURL"].ToString(); model.Owner = row["Owner"].ToString(); model.Counsellor = row["Counsellor"].ToString(); model.Designer = row["Designer"].ToString(); model.Inspector = row["Inspector"].ToString(); model.PrjInfo = row["PrjInfo"].ToString(); model.PrjState = row["PrjState"].ToString(); model.OwnerCode = row["OwnerCode"].ToString(); model.Rank = row["Rank"].ToString(); model.BudgetWay = row["BudgetWay"].ToString(); model.ContractWay = row["ContractWay"].ToString(); model.PayCondition = row["PayCondition"].ToString(); model.TenderWay = row["TenderWay"].ToString(); model.PayWay = row["PayWay"].ToString(); model.KeyPart = row["KeyPart"].ToString(); model.WorkUnit = row["WorkUnit"].ToString(); model.LinkMan = row["LinkMan"].ToString(); model.PrjManager = row["PrjManager"].ToString(); model.BuildingType = row["BuildingType"].ToString(); model.TotalHouseNum = row["TotalHouseNum"].ToString(); model.BuildingArea = row["BuildingArea"].ToString(); model.UsegrounArea = row["UsegrounArea"].ToString(); model.UndergroundArea = row["UndergroundArea"].ToString(); model.PrjFundInfo = row["PrjFundInfo"].ToString(); model.OtherStatement = row["OtherStatement"].ToString(); } return(model); }
public void InitPage() { SmPurchaseplanModel smPurchaseplanModel = null; if (base.Request.QueryString["id"] != null && base.Request.QueryString["ic"] == null) { smPurchaseplanModel = this.smPurchaseplanBll.GetModel(base.Request.QueryString["id"]); } else { if (base.Request.QueryString["ic"] != null) { smPurchaseplanModel = this.smPurchaseplanBll.GetModelByCid(base.Request.QueryString["ic"]); } } if (smPurchaseplanModel != null) { this.lblExplain.Text = smPurchaseplanModel.explain; this.lblInTime.Text = Common2.GetTime(smPurchaseplanModel.intime.ToString()); this.lblPeople.Text = smPurchaseplanModel.person; this.lblBllProducer.Text = smPurchaseplanModel.person; this.lblPrintDate.Text = DateTime.Now.ToShortDateString(); this.lblPPCode.Text = smPurchaseplanModel.ppcode; PrjInfoModel modelByPrjGuid = this.pTPrjInfoBll.GetModelByPrjGuid(smPurchaseplanModel.Project); if (modelByPrjGuid != null) { this.lblProjectName.Text = modelByPrjGuid.PrjName; } else { DataTable dataTable = new DataTable(); dataTable = this.pTPrjInfoBll.GetTableByPrjGuid(smPurchaseplanModel.Project); if (dataTable.Rows.Count > 0) { this.lblProjectName.Text = dataTable.Rows[0]["prjName"].ToString().Trim(); } } this.hdflowstate.Value = smPurchaseplanModel.flowstate.ToString(); this.hdGuid.Value = smPurchaseplanModel.ppid; string[] arrPpcode = new string[] { smPurchaseplanModel.ppcode }; string project = smPurchaseplanModel.Project; this.ViewState["DataTable"] = this.smPurchaseplanStockBll.GetResourceByPpcodes(arrPpcode, project, this.hfldIsWBSRelevance.Value); this.BindGv(); this.FileLink1.MID = 1756; this.FileLink1.FID = this.hdGuid.Value; this.FileLink1.Type = 1; return; } this.FileLink1.MID = 1756; this.FileLink1.FID = ""; this.FileLink1.Type = 1; }
private void BindPrjInfo() { PTPrjInfoBll pTPrjInfoBll = new PTPrjInfoBll(); PrjInfoModel prjInfoModel = new PrjInfoModel(); if (this.ddlPrject.Items.Count > 0) { prjInfoModel = pTPrjInfoBll.GetModelByPrjGuid(this.ddlPrject.SelectedValue.Trim()); string prjManager = prjInfoModel.PrjManager; this.lblPrjName.Text = prjInfoModel.PrjName; this.lblPrjManager.Text = prjManager.Substring(prjManager.IndexOf('-') + 1, prjManager.Length - (prjManager.IndexOf('-') + 1)); } }
public static int Update(PrjInfoModel PIM) { object obj2 = ("update PT_PrjInfo_ZTB set " + " PrjName= '" + PIM.PrjName + "'") + ",PrjCode= '" + PIM.PrjCode + "'"; object obj3 = string.Concat(new object[] { obj2, ",StartDate= '", PIM.StartDate, "'" }); string str2 = ((((((((((((((((((string.Concat(new object[] { obj3, ",EndDate= '", PIM.EndDate, "'" }) + ",ComputeClass= '" + PIM.ComputeClass + "'") + ",RationClass= '" + PIM.RationClass + "'") + ",PrjCost= '" + PIM.PrjCost + "'") + ",ContractSum= '" + PIM.ContractSum + "'") + ",Duration= '" + PIM.Duration + "'") + ",QualityClass= '" + PIM.QualityClass + "'") + ",Area= '" + PIM.Area + "'") + ",PrjKindClass= '" + PIM.PrjKindClass + "'") + ",PrjPlace= '" + PIM.PrjPlace + " '") + ",Remark= '" + PIM.Remark + "'") + ",FileName= '" + PIM.FileName + "'") + ",FileURL= '" + PIM.FileURL + "'") + ",Owner= '" + PIM.Owner + "'") + ",Counsellor= '" + PIM.Counsellor + "'") + ",Designer= '" + PIM.Designer + "'") + ",Inspector= '" + PIM.Inspector + "'") + ",PrjInfo= '" + PIM.PrjInfo + "'") + ",PrjState= '" + PIM.PrjState + "' ") + ",OwnerCode= '" + PIM.OwnerCode + "' "; string str3 = str2 + ",Rank= '" + PIM.Rank + "',BudgetWay='" + PIM.BudgetWay + "',ContractWay='" + PIM.ContractWay + "',"; string str4 = str3 + "PayCondition= '" + PIM.PayCondition + "',TenderWay='" + PIM.TenderWay + "',PayWay='" + PIM.PayWay + "',"; string str5 = str4 + " KeyPart='" + PIM.KeyPart + "',WorkUnit='" + PIM.WorkUnit + "',LinkMan='" + PIM.LinkMan + "',"; string str6 = str5 + "PrjManager= '" + PIM.PrjManager + "',BuildingType='" + PIM.BuildingType + "',TotalHouseNum='" + PIM.TotalHouseNum + "',"; string str7 = str6 + "BuildingArea= '" + PIM.BuildingArea + "',UsegrounArea='" + PIM.UsegrounArea + "',UndergroundArea='" + PIM.UndergroundArea + "',"; object obj4 = str7 + "PrjFundInfo= '" + PIM.PrjFundInfo + "',OtherStatement='" + PIM.OtherStatement + "'"; return(publicDbOpClass.ExecSqlString(string.Concat(new object[] { obj4, " where PrjGuid= '", PIM.PrjGuid, "'" }))); }
protected void setControlsValue() { MaterialWantPlanModel model = this.materialWant.GetModel(this.wantplanCode); this.hfldWantPlanGuid.Value = model.swid; this.lblCode.Text = model.swcode; if (!string.IsNullOrEmpty(model.procode)) { this.prjId = model.procode; PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(model.procode); if (modelByPrjGuid != null) { this.lblPrjName.Text = modelByPrjGuid.PrjName; } else { DataTable tableByPrjGuid = this.ptPrjInfo.GetTableByPrjGuid(model.procode); if (tableByPrjGuid.Rows.Count > 0) { this.lblPrjName.Text = tableByPrjGuid.Rows[0]["prjName"].ToString().Trim(); } } } this.lblPerson.Text = model.person; this.lblBllProducer.Text = model.person; this.lblPrintDate.Text = System.DateTime.Now.ToShortDateString(); this.dtxtApplyDate.Text = model.intime.Replace("0:00:00", "").Trim(); this.txtRemark.Value = model.explain; this.lblRemark.Text = model.explain; string equipmentId = model.EquipmentId; if (!string.IsNullOrEmpty(equipmentId)) { EquEquipmentService equEquipmentService = new EquEquipmentService(); EquEquipment byId = equEquipmentService.GetById(equipmentId); if (byId != null) { this.lblEquCode.Text = byId.EquCode; } } DataTable dataTable = this.materialStock.showMaterialListForUpdate(this.wantplanCode); if (dataTable != null && dataTable.Rows.Count > 0) { this.gvSmWantPlanStock.DataSource = dataTable; this.gvSmWantPlanStock.DataBind(); } this.DataBindDiff(); this.DataBindTaskDiff(); }
private void ddlPrjBind(PrjInfoModel PIM) { string text = PrjInfoAction.GetSqlWhere(PIM); text = " Podepom like '%" + this.Session["yhdm"].ToString().Trim() + "%' and " + text; DataTable dateList = PrjInfoAction.GetDateList(text); if (dateList.Rows.Count > 0) { this.ddlPrj.DataSource = dateList; this.ddlPrj.DataTextField = "PrjName"; this.ddlPrj.DataValueField = "PrjCode"; this.ddlPrj.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { this.ViewState["SQLWHERE"] = base.Request.QueryString["SqlWhere"]; if (base.Request.QueryString["SqlWhere"].Trim() == "") { PrjInfoModel prjInfoModel = new PrjInfoModel(); prjInfoModel.Remark = "2"; prjInfoModel.PrjState = "2"; this.ViewState["SQLWHERE"] = "1=1"; } this.GridBind(this.ViewState["SQLWHERE"].ToString()); } }
protected override void OnInit(System.EventArgs e) { if (!string.IsNullOrEmpty(base.Request["prjId"])) { this.prjId = base.Request["prjId"]; } PTPrjInfoBll pTPrjInfoBll = new PTPrjInfoBll(); PrjInfoModel prjInfoModel = new PrjInfoModel(); if (!string.IsNullOrEmpty(base.Request["prjId"])) { prjInfoModel = pTPrjInfoBll.GetModelByPrjGuid(this.prjId); this.year = prjInfoModel.StartDate.Year.ToString(); } base.OnInit(e); }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { base.Request.QueryString["prjguid"].ToString(); this.PrjGuid = new Guid(base.Request.QueryString["prjguid"].ToString()); PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.PrjGuid.ToString()); if (modelByPrjGuid != null) { this.prjName = modelByPrjGuid.PrjName; } this.gvBudget.PageSize = NBasePage.pagesize; this.setTitle(); this.InitPage(); } }
public static void AddOrDelDesktopNotifications(string prjId, bool isEReport) { PTPrjInfoBll bll = new PTPrjInfoBll(); PrjInfoModel modelByPrjGuid = new PrjInfoModel(); modelByPrjGuid = bll.GetModelByPrjGuid(prjId); string podepom = modelByPrjGuid.Podepom; string[] strArray = new string[0]; if ((podepom != null) && podepom.Contains <char>(',')) { strArray = podepom.Split(new char[] { ',' }); } PTDbsjBll bll2 = new PTDbsjBll(); bll2.DelPastDueData(prjId); if (isEReport) { foreach (string str2 in strArray) { if (str2 != "") { StringBuilder builder = new StringBuilder(); builder.Append("项目:" + modelByPrjGuid.PrjName); builder.Append("的间接成本已经上报,请审核!"); PTDbsjModel model = new PTDbsjModel { C_OpenFlag = "0", DTM_DBSJ = DateTime.Now, I_XGID = prjId, V_Content = builder.ToString(), V_DBLJ = "BudgetManage/Cost/IndirectBudgetQuery.aspx?id=" + prjId, V_LXBM = "021", V_TPLJ = "new_Mail.gif", V_YHDM = str2 }; try { bll2.Add(model); } catch { } } } } }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { this.InitPage(); PrjInfoModel prjInfoModel = new PrjInfoModel(); ConstructReport byId = ConstructReport.GetById(this.consRepId); prjInfoModel = this.ptPrjInfoBll.GetModelByPrjGuid(byId.ProjectId); System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); stringBuilder.AppendFormat(prjInfoModel.PrjName + "下", new object[0]); stringBuilder.Append(byId.InputDate.ToString("yyyy年MM月dd日")); stringBuilder.Append("的施工报量"); this.lblPrjName.Text = stringBuilder.ToString(); this.BindGv(); this.hfldConsRepId.Value = this.consRepId; } }
public void InitPage() { RefundingModel refundingModel = null; if (base.Request.QueryString["id"] != null && base.Request.QueryString["ic"] == null) { refundingModel = this.refundingBll.GetModel(base.Request.QueryString["id"]); } else { if (base.Request.QueryString["ic"] != null) { refundingModel = this.refundingBll.GetModelByIc(base.Request.QueryString["ic"]); } } this.lblExplain.Text = refundingModel.explain; this.lblInTime.Text = Common2.GetTime(refundingModel.intime.ToString()); this.lblPeople.Text = refundingModel.person; this.lblPPCode.Text = refundingModel.rcode; PrjInfoModel modelByPrjGuid = this.pTPrjInfoBll.GetModelByPrjGuid(refundingModel.procode); if (modelByPrjGuid != null) { this.lblProjectName.Text = modelByPrjGuid.PrjName; } else { DataTable tableByPrjGuid = this.pTPrjInfoBll.GetTableByPrjGuid(refundingModel.procode); if (tableByPrjGuid.Rows.Count > 0) { this.lblProjectName.Text = tableByPrjGuid.Rows[0]["prjName"].ToString().Trim(); } } this.lblBllProducer.Text = refundingModel.person; this.lblPrintDate.Text = DateTime.Now.ToShortDateString(); this.hdnProjectCode.Value = refundingModel.procode; this.hdflowstate.Value = refundingModel.flowstate.ToString(); this.hdGuid.Value = refundingModel.rid; this.lblTreasuryName.Text = this.treasury.GetModel(refundingModel.tcode).tname; this.ViewState["DataTable"] = this.backStockBll.GetTableByRcode(refundingModel.rcode); this.BindGv(); this.FileLink1.MID = 1805; this.FileLink1.FID = this.hdGuid.Value; this.FileLink1.Type = 1; }
public static int ADD(PrjInfoModel PIM) { string str = " insert into PT_PrjInfo_ZTB values ( "; object obj2 = str; object obj3 = string.Concat(new object[] { obj2, " '", PIM.PrjCode, "','", PIM.PrjGuid, "','", PIM.PrjName, "','", PIM.StartDate, "', " }); string str2 = string.Concat(new object[] { obj3, " '", PIM.EndDate, "','", PIM.ComputeClass, "','", PIM.RationClass, "', " }); string str3 = str2 + " '" + PIM.PrjCost + "','" + PIM.ContractSum + "','" + PIM.Duration + "', "; string str4 = str3 + " '" + PIM.QualityClass + "','" + PIM.Area + "','" + PIM.PrjKindClass + "', "; string str5 = str4 + " '" + PIM.PrjPlace + "','" + PIM.Remark + "','" + PIM.FileName + "','" + PIM.FileURL + "' ,"; object obj4 = str5 + " '" + PIM.Owner + "','" + PIM.Counsellor + "','" + PIM.Designer + "',"; string str6 = string.Concat(new object[] { obj4, " '", PIM.Inspector, "','", PIM.PrjInfo, "','", PIM.PrjState, "','", PIM.OwnerCode, "','", Guid.Empty, "'," }); string str7 = str6 + " '" + PIM.Rank + "','" + PIM.BudgetWay + "','" + PIM.ContractWay + "',"; string str8 = str7 + " '" + PIM.PayCondition + "','" + PIM.TenderWay + "','" + PIM.PayWay + "',"; string str9 = str8 + " '" + PIM.KeyPart + "','" + PIM.WorkUnit + "','" + PIM.LinkMan + "',"; string str10 = str9 + " '" + PIM.PrjManager + "','" + PIM.BuildingType + "','" + PIM.TotalHouseNum + "',"; string str11 = str10 + " '" + PIM.BuildingArea + "','" + PIM.UsegrounArea + "','" + PIM.UndergroundArea + "',"; return(publicDbOpClass.ExecSqlString((str11 + " '" + PIM.PrjFundInfo + "','" + PIM.OtherStatement + "'") + "\t)")); }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { base.Request.QueryString["prjguid"].ToString(); this.PrjGuid = new Guid(base.Request.QueryString["prjguid"].ToString()); PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.PrjGuid.ToString()); if (modelByPrjGuid != null) { this.prjName = modelByPrjGuid.PrjName; } this.gvBudget.PageSize = NBasePage.pagesize; this.setTitle(); this.InitPage(); return; } List <PayoutPaymentModel> list = (List <PayoutPaymentModel>) this.ViewState["PayoutPaymentModel"]; if (!string.IsNullOrEmpty(this.prjcode.Text)) { list = ( from model in list where model.PaymentCode.LastIndexOf(this.prjcode.Text.Trim()) >= 0 select model).ToList <PayoutPaymentModel>(); } if (!string.IsNullOrEmpty(this.zfstart.Text)) { list = ( from model in list where this.GetSumPayOutMoneyByPayoutPaymentID(model.ID) / (double)model.PaymentMoney.Value >= double.Parse(this.zfstart.Text) / 100.0 select model).ToList <PayoutPaymentModel>(); } if (!string.IsNullOrEmpty(this.zfend.Text)) { list = ( from model in list where this.GetSumPayOutMoneyByPayoutPaymentID(model.ID) / (double)model.PaymentMoney.Value <= double.Parse(this.zfend.Text) / 100.0 select model).ToList <PayoutPaymentModel>(); } this.gvBudget.DataSource = list; this.gvBudget.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { this.txt_StartDate.Attributes["onactivate"] = "getBeginDate();"; this.txt_EndDate.Attributes["onactivate"] = "getEndDate();"; this.hdnSeeType.Value = base.Request.QueryString["SeeType"]; this.Drop_QualityClass_Bind(); this.Drop_PrjKindClass_Bind(); this.ddt_stateBind(); this.ddt_Area_Bind(); this.Drop_zzGrade_Bind(); this.Drop_ysType_Bind(); this.Drop_cbType_Bind(); this.Drop_Payment_Bind(); this.Drop_zbType_Bind(); this.Drop_jsType_Bind(); this.Drop_PrimaryGrade_Bind(); this.Drop_jzType_Bind(); this.fatherPrj_Bind(); if (base.Request.QueryString["OpType"] != "ADD") { this.ViewState["INFOCODE"] = base.Request.QueryString["Code"]; PrjInfoModel pIM = new PrjInfoModel(); pIM = PrjInfoAction.GetSingleInfo(this.ViewState["INFOCODE"].ToString()); this.TextBind(pIM); } else { this.txt_StartDate.Text = DateTime.Now.ToString("yyyy-M-dd"); this.txt_EndDate.Text = DateTime.Now.ToString("yyyy-M-dd"); this.ViewState["INFOCODE"] = Guid.NewGuid(); } if (base.Request.QueryString["OpType"] == "SEE") { this.btnSave.Visible = false; } this.HdnPrjCode.Value = this.ViewState["INFOCODE"].ToString(); } this.FilesBind(18); }
public static int ADD2(string TypeCode, string UserCode, string RecordDate, PrjInfoModel PIM) { int num = int.Parse(publicDbOpClass.QuaryMaxid("PT_PrjInfo", "i_XH")) + 1; string str2 = (" begin " + " insert into PT_PrjInfo (TypeCode,i_xh,UserCode,RecordDate,IsValid ,i_childNum,PrjCode,PrjGuid,PrjName,StartDate,EndDate," + "ComputeClass,RationClass,PrjCost,ContractSum,Duration,QualityClass,Area,PrjKindClass,PrjPlace,Remark1,FileName,FileURL,") + "Owner,Counsellor,Designer,Inspector,PrjInfo,PrjState,OwnerCode,MarketInfoGuid,Rank,BudgetWay,ContractWay,PayCondition,TenderWay,PayWay," + "KeyPart,WorkUnit,LinkMan,PrjManager,BuildingType,TotalHouseNum,BuildingArea,UsegrounArea,UndergroundArea,PrjFundInfo,OtherStatement"; object obj2 = str2 + " ) values ('" + TypeCode + "'," + num.ToString() + ",'" + UserCode + "','" + RecordDate + "','1',0,"; object obj3 = string.Concat(new object[] { obj2, " '", PIM.PrjCode, "','", PIM.PrjGuid, "','", PIM.PrjName, "','", PIM.StartDate, "', " }); string str3 = string.Concat(new object[] { obj3, " '", PIM.EndDate, "','", PIM.ComputeClass, "','", PIM.RationClass, "', " }); string str4 = str3 + " '" + PIM.PrjCost + "','" + PIM.ContractSum + "','" + PIM.Duration + "', "; string str5 = str4 + " '" + PIM.QualityClass + "','" + PIM.Area + "','" + PIM.PrjKindClass + "', "; string str6 = str5 + " '" + PIM.PrjPlace + "','" + PIM.Remark + "','" + PIM.FileName + "','" + PIM.FileURL + "' ,"; object obj4 = str6 + " '" + PIM.Owner + "','" + PIM.Counsellor + "','" + PIM.Designer + "',"; string str7 = string.Concat(new object[] { obj4, " '", PIM.Inspector, "','", PIM.PrjInfo, "','", PIM.PrjState, "','", PIM.OwnerCode, "','", Guid.Empty, "'," }); string str8 = str7 + " '" + PIM.Rank + "','" + PIM.BudgetWay + "','" + PIM.ContractWay + "',"; string str9 = str8 + " '" + PIM.PayCondition + "','" + PIM.TenderWay + "','" + PIM.PayWay + "',"; string str10 = str9 + " '" + PIM.KeyPart + "','" + PIM.WorkUnit + "','" + PIM.LinkMan + "',"; string str11 = str10 + " '" + PIM.PrjManager + "','" + PIM.BuildingType + "','" + PIM.TotalHouseNum + "',"; string str12 = str11 + " '" + PIM.BuildingArea + "','" + PIM.UsegrounArea + "','" + PIM.UndergroundArea + "',"; object obj5 = (str12 + " '" + PIM.PrjFundInfo + "','" + PIM.OtherStatement + "'") + "\t)"; string str13 = string.Concat(new object[] { obj5, " INSERT INTO PT_PrjInfo_ZTB_Detail(PrjGuid, IsTender,SetUpFlowState) VALUES('", PIM.PrjGuid, "', '1', '1')" }); return(publicDbOpClass.ExecSqlString((str13 + " update PT_PrjInfo set i_childNum = (select count(1) from PT_PrjInfo where (TypeCode like '" + TypeCode.Substring(0, TypeCode.Length - 5) + "%') and (len(TypeCode)= " + TypeCode.Length.ToString() + ")) where TypeCode = '" + TypeCode.Substring(0, TypeCode.Length - 5) + "'") + " end")); }
public void BindGv() { this.hfldPrjId.Value = base.Request.QueryString["prjguid"].ToString(); this.hfldPurchaseChecked.Value = string.Empty; if (this.hfldPrjId.Value.ToString() != "") { PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.hfldPrjId.Value); if (modelByPrjGuid != null) { this.prjName = modelByPrjGuid.PrjName; } this.setTitle(); string text = " Con_Payout_Payment.FlowState=1 "; if (!string.IsNullOrEmpty(this.hfldPrjId.Value)) { text += string.Format(" and Con_Payout_Contract.PrjGuid = '{0}' ", this.hfldPrjId.Value); } List <PayoutPaymentModel> list = this.payoutPayment.GetList(text); this.ViewState["PayoutPaymentModel"] = list; this.gvBudget.DataSource = list; } this.gvBudget.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { this.ddlType.Attributes.Add("onchange", "TypeChange()"); this.hdnZHID.Value = base.Request.QueryString["ZHID"].ToString(); if (base.Request.QueryString["Action"] == "Add") { this.txtAccCode.Text = DateTime.Now.ToString("yyyyMMddHHmmssfff"); this.hdnAccountID.Value = Guid.NewGuid().ToString(); this.txtInDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); this.txtInPeople.Text = com.jwsoft.pm.entpm.PageHelper.QueryUser(this, base.UserCode); this.hdnPeopleCode.Value = base.UserCode; this.DaGet.Text = DateTime.Now.ToString("yyyy-MM-dd"); this.aM = this.al.GetModel(this.hdnZHID.Value); if (!this.aM.PrjGuid.StartsWith("'")) { PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.aM.PrjGuid); if (modelByPrjGuid != null) { this.txtPrjName.Text = modelByPrjGuid.PrjName; this.hdnProjectCode.Value = this.aM.PrjGuid; } } } else { this.hdnAccountID.Value = base.Request.QueryString["AccountID"].ToString(); this.accountModel = this.AccountBll.GetModel(new Guid(this.hdnAccountID.Value)); this.txtAccCode.Text = this.accountModel.InCode.ToString(); this.hdnAccountID.Value = this.accountModel.InUid.ToString(); this.txtInDate.Text = Convert.ToDateTime(this.accountModel.InDate).ToString("yyyy-MM-dd"); this.txtInPeople.Text = com.jwsoft.pm.entpm.PageHelper.QueryUser(this, this.accountModel.InPeople); this.hdnPeopleCode.Value = this.accountModel.InPeople; this.DaGet.Text = Convert.ToDateTime(this.accountModel.GetDate).ToString("yyyy-MM-dd"); this.hdnProjectCode.Value = this.accountModel.PrjGuid.ToString(); PrjInfoModel modelByPrjGuid2 = this.ptPrjInfo.GetModelByPrjGuid(this.accountModel.PrjGuid); if (modelByPrjGuid2 != null) { this.txtPrjName.Text = modelByPrjGuid2.PrjName; } this.hdnContCode.Value = this.accountModel.ContractID.ToString(); this.hdnPlanUid.Value = this.accountModel.PlanUid.ToString(); this.ddlType.SelectedValue = this.accountModel.Subject.ToString(); this.txtRemark.Text = this.accountModel.Remark.ToString(); DataTable allNews = this.AccountBll.GetAllNews(this.accountModel.ContractID); if (allNews.Rows.Count > 0) { this.hdnPlanUid.Value = allNews.Rows[0]["UID"].ToString(); if (!string.IsNullOrEmpty(allNews.Rows[0]["PlanDate"].ToString())) { this.txtPlan.Text = Convert.ToDateTime(allNews.Rows[0]["PlanDate"].ToString()).ToString("yyyy年MM月"); this.txtPlanMoney.Text = allNews.Rows[0]["ThisBalance"].ToString(); } else { this.txtPlan.Text = ""; this.txtPlanMoney.Text = "0.00"; } this.txtContName.Text = allNews.Rows[0]["cllectionCode"].ToString(); } this.txtInMoney.Text = this.accountModel.InMoney.ToString(); this.txtGetMoney.Text = this.accountModel.GetMoney.ToString(); } this.FileUpload1.Class = "AccounIncome"; this.FileUpload1.RecordCode = this.hdnAccountID.Value; } }
private void TextBind(PrjInfoModel PIM) { PTPrjInfoZTBBll pTPrjInfoZTBBll = new PTPrjInfoZTBBll(); this.Literal1.Text = "------"; DataTable dataTable = pTPrjInfoZTBBll.getDataTable(PIM.PrjGuid.ToString()); if (dataTable != null && dataTable.Rows.Count > 0) { for (int i = 0; i < dataTable.Rows.Count; i++) { this.Label1.Text = dataTable.Rows[i]["telephone"].ToString(); this.Literal1.Text = ((dataTable.Rows[i]["grade"].ToString() == "") ? "------" : dataTable.Rows[i]["grade"].ToString()); this.Label3.Text = dataTable.Rows[i]["businessman"].ToString(); string text = dataTable.Rows[i]["businessman"].ToString(); this.Label3.Text = text.Substring(text.LastIndexOf("-") + 1); } } this.labPrjcode.Text = PIM.PrjCode; this.labPrjname.Text = PIM.PrjName; this.labstarttime.Text = PIM.StartDate.ToString("yyyy-MM-dd"); this.labendtime.Text = PIM.EndDate.ToString("yyyy-MM-dd"); this.labPrjCost.Text = PIM.PrjCost; this.labgq.Text = PIM.Duration.ToString(); this.labquclass.Text = PMAction.gettypeName(PIM.QualityClass, 13); this.labPrjkind.Text = PMAction.gettypeName(PIM.PrjKindClass, 3); this.labstata.Text = PMAction.gettypeName(PIM.PrjState, 7); this.labarea.Text = PMAction.gettypeName(PIM.Area, 19); this.LabRemark.Text = PIM.Remark; this.labOwner.Text = PIM.Owner; this.LabCounsellor.Text = PIM.Counsellor; this.LabDesigner.Text = PIM.Designer; this.LabInspector.Text = PIM.Inspector; this.Labprjinfo.Text = PIM.PrjInfo; this.LabPrjPlace.Text = PIM.PrjPlace; this.Labrank.Text = PMAction.gettypeName(PIM.Rank, 22); this.LabBudgetWay.Text = PMAction.gettypeName(PIM.BudgetWay, 23); this.LabContractWay.Text = PMAction.gettypeName(PIM.ContractWay, 24); this.LabPayCondition.Text = PMAction.gettypeName(PIM.PayCondition, 25); this.LabTenderWay.Text = PMAction.gettypeName(PIM.TenderWay, 26); this.LabPayWay.Text = PMAction.gettypeName(PIM.PayWay, 27); this.LabKeyPart.Text = PMAction.gettypeName(PIM.KeyPart, 28); this.LabWorkUnit.Text = PIM.WorkUnit; this.Lablinkman.Text = PIM.LinkMan; if (PIM.PrjManager.ToString().Length > 8) { this.Labmanager.Text = PIM.PrjManager.Substring(9); } this.LabBuildingType.Text = PMAction.gettypeName(PIM.BuildingType, 29); this.LabTotalHouseNum.Text = PIM.TotalHouseNum; this.LabBuildingArea.Text = PIM.BuildingArea; this.LabUsegrounArea.Text = PIM.UsegrounArea; this.LabUndergroundArea.Text = PIM.UndergroundArea; this.LabPrjFundInfo.Text = PIM.PrjFundInfo; this.LabOtherStatement.Text = PIM.OtherStatement; for (int j = 0; j < this.Controls.Count; j++) { foreach (Control control in this.Controls[j].Controls) { if (control is Label && (control as Label).Text == "") { (control as Label).Text = "------"; } } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { this.hdnAccountID.Value = base.Request.QueryString["ic"].ToString(); this.accountModel = this.AccountBll.GetModel(new Guid(this.hdnAccountID.Value)); this.lblcode.Text = this.accountModel.InCode.ToString(); this.lblInDate.Text = Convert.ToDateTime(this.accountModel.InDate).ToString("yyyy-MM-dd"); this.lblContractName.Text = this.accountModel.ContractName.ToString(); this.lblInPeople.Text = com.jwsoft.pm.entpm.PageHelper.QueryUser(this, this.accountModel.InPeople); this.DateGetTime.Text = Convert.ToDateTime(this.accountModel.GetDate).ToString("yyyy-MM-dd"); PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(this.accountModel.PrjGuid); if (modelByPrjGuid != null) { this.lblProject.Text = modelByPrjGuid.PrjName; } string a; if ((a = this.accountModel.Subject.ToString()) != null) { if (!(a == "0")) { if (!(a == "1")) { if (a == "2") { this.lblsubject.Text = "其他入账"; } } else { this.lblsubject.Text = "启动资金"; } } else { this.lblsubject.Text = "合同入账"; } } this.hdnsubject.Value = this.accountModel.Subject.ToString(); this.lblRemark.Text = this.accountModel.Remark.ToString(); DataTable allNews = this.AccountBll.GetAllNews(this.accountModel.ContractID); if (allNews.Rows.Count > 0) { if (!string.IsNullOrEmpty(allNews.Rows[0]["PlanDate"].ToString())) { this.lblPlan.Text = Convert.ToDateTime(allNews.Rows[0]["PlanDate"].ToString()).ToString("yyyy年MM月"); this.lblPlanMoney.Text = allNews.Rows[0]["ThisBalance"].ToString(); } else { this.lblPlan.Text = ""; this.lblPlanMoney.Text = "0.00"; } this.lblContName.Text = allNews.Rows[0]["cllectionCode"].ToString(); } this.lblInMoney.Text = this.accountModel.InMoney.ToString(); this.lblGetMoney.Text = this.accountModel.GetMoney.ToString(); this.upload.InnerHtml = this.FilesBind(this.hdnAccountID.Value); this.lblPrintDate.Text = DateTime.Now.ToShortDateString(); this.lblPrintPeople.Text = com.jwsoft.pm.entpm.action.PageHelper.QueryUser(this, base.UserCode); } }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { //dropProject //dropTrea if (this.action.Equals("Add")) { this.hfldPid.Value = System.Guid.NewGuid().ToString(); this.txtScode.Text = System.DateTime.Now.ToString("yyyyMMddHHmmss"); this.txtInputDate.Text = System.DateTime.Today.ToShortDateString(); this.txtPerson.Text = PageHelper.QueryUser(this, base.UserCode); DataTable storageStockDataSource = this.storageStock.GetStorageStockDataSource(string.Empty); this.ViewState[this.stockDataSourceName] = storageStockDataSource; this.gvwStorageStock.DataSource = storageStockDataSource; this.gvwStorageStock.DataBind(); if (this.manageMode != SmEnum.SmSetValue.ParallelMode) { string totalCode = this.treasury.GetTotalCode(); this.hfldTrea.Value = totalCode; this.txtTrea.Text = this.GetTreasuryNameByCode(totalCode); } } else { StorageModel model = this.storage.GetModel(this.storageCode); this.hfldPid.Value = model.sid; this.txtScode.Text = model.scode; this.txtInputDate.Text = model.intime.ToShortDateString(); this.txtPerson.Text = model.person; this.hfldTrea.Value = model.tcode; this.txtTrea.Text = this.GetTreasuryNameByCode(model.tcode); this.txtExplain.Text = model.explain; if (!string.IsNullOrEmpty(model.project)) { this.hfldProject.Value = model.project; PrjInfoModel modelByPrjGuid = this.ptPrjInfo.GetModelByPrjGuid(model.project); if (modelByPrjGuid != null) { this.txtProject.Text = modelByPrjGuid.PrjName; } } DataTable storageStockDataSource2 = this.storageStock.GetStorageStockDataSource(this.storageCode); this.ViewState[this.stockDataSourceName] = storageStockDataSource2; this.gvwStorageStock.DataSource = storageStockDataSource2; this.gvwStorageStock.DataBind(); string total = System.Convert.ToDecimal(storageStockDataSource2.Compute("SUM(Total)", string.Empty)).ToString("0.000"); GridViewUtility.AddTotalRow(this.gvwStorageStock, total, 13); if (storageStockDataSource2.Rows.Count > 0) { this.hfldPurchaseCode.Value = storageStockDataSource2.Rows[0]["linkcode"].ToString(); } } if (this.manageMode == SmEnum.SmSetValue.TotalMode) { this.hfldStorageMode.Value = "1"; } else { this.hfldStorageMode.Value = "0"; } this.flAnnx.MID = 1802; this.flAnnx.FID = this.hfldPid.Value; this.flAnnx.Type = 1; } }