/// <summary> /// 绑定树 /// </summary> private void LoadDeptTree() { if (UCLevel != String.Empty) { iLevel = SysConvert.ToInt32(UCLevel); } hasDeptID = SysString.GetStringToArrayList(UCShowDeptID, ','); m_dtbDepartment = OADept.GetDeptInfo(iLevel).DtTable; this.tvDeptList.Nodes.Clear(); DataRow[] l_dtrTopRows = m_dtbDepartment.Select("FloorCode=0");//最顶层 foreach (DataRow l_dtrDataRow in l_dtrTopRows) { TreeNode l_objNode = new TreeNode(); l_objNode = this.SetTreeNode(l_objNode, l_dtrDataRow); this.tvDeptList.Nodes.Add(l_objNode); DataRow[] l_dtrChildRows = m_dtbDepartment.Select("ParentID=" + l_dtrDataRow["ID"].ToString()); if (l_dtrChildRows.Length > 0) { this.LoadSubDeptTree(l_objNode, l_dtrChildRows); } } }
protected override void BindOUControl() { if (IsPreview == false) { OADept.GetDeptByUser(drpSendDept, CurrentUserInfo.LoginName, 1, false, false); //发文部门 } }
public void InitLoad() { UCIsGoOnCirculate = true; string deptID = OADept.GetDeptIDByUser(CurrentUserInfo.LoginName); if (deptID == "-1") { tr1.Visible = false; UCDeptMember1.Visible = false; txtCommentEdit.Visible = false; UCIsGoOnCirculate = false; } else if (deptID == "") { //公司领导不做限制 UCDeptMember1.UCShowDeptID = ""; UCIsGoOnCirculate = true; } else { UCDeptMember1.UCShowDeptID = deptID; UCIsGoOnCirculate = true; } }
protected void btnSubmitUnderTake_Click(object sender, EventArgs e) { String l_strUndertakeInfo = String.Empty; String l_strMessageInfo = String.Empty; Boolean l_blnIsUnderTake = false; String l_strDeptLeaderID = null; if (String.IsNullOrEmpty(txtUnderTakeDeptID.Text.TrimEnd())) { JScript.ShowMsgBox(this.Page, MsgType.VbCritical, "没有选择承办部门"); return; } //表单的合法性验证 if (!VerifyField()) { JScript.ShowMsgBox(this.Page, MsgType.VbCritical, m_strAryMessages); return; } //提交动作 this.m_strSubmitAction = ProcessConstString.SubmitAction.ReceiveBase.SUBMIT_UNDERTAKE; //获取承办部门ID String[] l_strAryUnderTakeDeptID = txtUnderTakeDeptID.Text.TrimEnd().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); if (l_strAryUnderTakeDeptID.Length > 0) { foreach (String l_strUnderTakeDeptID in l_strAryUnderTakeDeptID) { //流程创建时候设置自定义属性 l_strDeptLeaderID = OAUser.GetUserByDeptPostArray(this.txtUnderTakeDeptID.Text, null, true, true)[0]; String l_strDeptName = OADept.GetDeptByDeptID(l_strUnderTakeDeptID).Name; if (String.IsNullOrEmpty(l_strDeptLeaderID)) { l_strUndertakeInfo += l_strDeptName + ":无处级领导,该部门不参与承办\\n"; } else { l_blnIsUnderTake = true; } } } //不能承办 if (!l_blnIsUnderTake) { JScript.ShowMsgBox(this.Page, MsgType.VbCritical, "提交承办处理失败:承办部门都无处级领导,无法承办"); return; } l_htAttribute.Add(ConstString.CustomAttr.Receive.DeptDirector, l_strDeptLeaderID); l_htAttribute.Add(ConstString.CustomAttr.Receive.IsMultipleDept, false); l_htAttribute.Add(ConstString.CustomAttr.Receive.IsDirectArchive, false); l_htAttribute.Add(ConstString.CustomAttr.Receive.IsPlot, false); base.FormSubmit(false, m_strSubmitAction, l_htAttribute, this.ControlToEntity(false)); }
/// <summary> /// 绑定部门 /// </summary> public void BindDept() { if (ddlSignDept.Items.Count == 0) { OADept.GetDeptByIfloor(ddlSignDept, 1); ddlSignDept_SelectedIndexChanged(null, null); } }
/// <summary> /// gridview绑定 /// </summary> private void LoadCompany() { vb = OADept.GetCompany(this.ddlType.SelectedIndex + 1, this.txtSearchText.Text.Trim()); if (vb != null) { this.gvCompany.DataSource = vb.DtTable; this.gvCompany.DataBind(); } }
/// <summary> ///申请单的编号规则 CC+部门代码+年度+四位流水号 /// </summary> /// <returns></returns> protected string GetFinanceTripNo(B_Finance entity) { Department dept = OADept.GetDeptByDeptID(this.ddlBianZhiBuMen.SelectedValue); string strLine = "-"; string strYear = DateTime.Now.Year.ToString(); B_DocumentNo_A b_documentno_a = new B_DocumentNo_A(); return("CCSQ" + strLine + dept.No + strLine + b_documentno_a.GetNo(ProcessConstString.TemplateName.FINANCE_TRIPAPPLY, strYear)); }
/// <summary> /// 列表数据绑定 /// </summary> private void LoadCompany() { vb = OADept.GetCompany(1, null); if (vb != null) { this.msExoticCompanyList.DataSource = vb.DtTable; this.msExoticCompanyList.DataBind(); } }
protected string GetFinanceNo(B_FinanceZDBX entity) { Department dept = OADept.GetDeptByDeptID(this.ddlDepartment.SelectedValue); string strLine = "-"; string strYear = DateTime.Now.Year.ToString(); B_DocumentNo_A b_documentno_a = new B_DocumentNo_A(); return("ZDBX" + strLine + dept.No + strLine + b_documentno_a.GetNo(ProcessConstString.TemplateName.FinanceZDBX_APPLY, strYear)); }
/// <summary> /// 脚本回传 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnOK_Click(object sender, EventArgs e) { String strIds = String.Empty; String strNos = String.Empty; String strNames = String.Empty; if (UCIsSingle) { strIds = this.gvCompany.SelectedKey; } else { strIds = SysString.GetStringFormatForList(this.gvCompany.SelectedKeys, ","); } vb = OADept.GetCompany(this.ddlType.SelectedIndex + 1, this.txtSearchText.Text.Trim()); if (String.IsNullOrEmpty(strIds) == false) { if (vb != null) { vb.Condition = "a.ID in (" + strIds + ")"; strIds = vb.GetFieldVals("ID", ";"); strNos = vb.GetFieldVals("No", ";"); strNames = vb.GetFieldVals("Name", ";") + ";"; } } String strScript = String.Empty; if (this.UCIDControl != String.Empty) { strScript += base.GetJSscriptValue(this.UCIDControl, strIds); } if (this.UCNoControl != String.Empty) { strScript += base.GetJSscriptValue(this.UCNoControl, strNos); strScript += base.GetJSscriptTitle(this.UCNoControl, strNames); } if (this.UCNameControl != String.Empty) { strScript += base.GetJSscriptValue(this.UCNameControl, strNames); strScript += base.GetJSscriptTitle(this.UCNameControl, strNos); } if (UCIsSingle) { strScript += String.Format("parent.ClosePopDiv('{0}')", base.divPopDivID + base.UCID); } //组成一整条js后运行 ClientScriptM.ResponseScript(this, strScript); }
/// <summary> /// 流程类型选择事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ddlProcessTemplate_SelectedIndexChanged(object sender, EventArgs e) { LoadProcessSteps(); #region 根据流程类型绑定特有字段 switch (this.ddlProcessTemplate.SelectedValue) { //公司发文 case ProcessConstString.TemplateName.COMPANY_SEND: case ProcessConstString.TemplateName.DJGT_Send: //renjinquan+ OADept.GetDeptByIfloor(drpGFDept, 1); break; //公司收文 case ProcessConstString.TemplateName.COMPANY_RECEIVE: case ProcessConstString.TemplateName.MERGED_RECEIVE: //renjinquan+ break; //函件收文 case ProcessConstString.TemplateName.LETTER_RECEIVE: OAList.BindHJLX2(ddlHSLetterType, true); break; //函件发文 case ProcessConstString.TemplateName.LETTER_SEND: OAList.BindHJLX(ddlHFLetterType, true); OADept.GetDeptByIfloor(this.ddlHFDept, 1); break; //程序文件 case ProcessConstString.TemplateName.PROGRAM_FILE: OADept.GetDeptByIfloor(this.ddlPFDept, 1); break; //工作联系单 case ProcessConstString.TemplateName.AFFILIATION: OADept.GetDeptByIfloor(this.ddlWRHostDept, 1); OADept.GetDeptByIfloor(this.ddlWRMainSendDept, 1); break; //请示报告 case ProcessConstString.TemplateName.INSTUCTION_REPORT: OAUser.GetUserByRole(this.ddlMainSendleader, OUConstString.RoleName.COMPANY_LEADER); OADept.GetDeptByIfloor(this.ddlUnderTakeDept, 1); OADept.GetDeptByIfloor(this.ddlHostDept, 1); break; } #endregion //chenye //LoadProcessList(); }
/// <summary> /// PageLoad事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LoadClickCreateTabStyle(); this.MultiView.ActiveViewIndex = 0; gvProgramFileList.PageType = PageType.InteriorPage; BindProgramFileListForCreate(0, 0, ""); //绑定本处室 OADept.GetDeptByUser(ddlDept, CurrentUserInfo.LoginName, 1, false); OADept.GetDeptByUser(ddlDept2, CurrentUserInfo.LoginName, 1, false); } }
private void HeGaoRen() { //核稿人 string deptIDS = OADept.GetChildDeptIDSConSelf(drpSendDept.SelectedValue, -1); UCHeGao.UCShowDeptID = deptIDS; //* 获得下属所有部门ID UCHeGao.UCIsSingle = "1"; UCHeGao.UCDeptUserIDControl = wfHeGaoRenID.ClientID; UCHeGao.UCDeptUserNameControl = txtHeGaoRen.ClientID; UCHeGao.UCSelectType = "1"; this.UCHeGao.UCTemplateName = base.TemplateName.Replace("新版", ""); this.UCHeGao.UCFormName = "核稿人"; if (drpSendDept.SelectedItem != null) { txtHeGaoRen.ToolTip = drpSendDept.SelectedItem.Text + " 的成员"; } }
/// <summary> /// 页面加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { #region 页面显示控制 UCSelectType = "1"; //只选人 UCIsSingle = true; //单选 UCDeptIDControl = hUCDeptID.ClientID; UCDeptUserIDControl = hUCDeptUserID.ClientID; UCShowDeptID = OADept.GetDeptIDByUser2(CurrentUserInfo.LoginName); hUCDeptUserID.Value = B_WFAgent.GetAgentUserID(CurrentUserInfo.UserName); if (string.IsNullOrEmpty(UCShowDeptID)) { UCShowDeptID = string.Empty; } if (string.IsNullOrEmpty(UCDeptShowType)) { UCDeptShowType = string.Empty; } //如果需要选人 if (UCSelectType == "1") { tvDB.SelectedNodeChanged += new EventHandler(tvDB_SelectedNodeChanged); } else if (UCSelectType == "2") { tvDB.SelectedNodeChanged += new EventHandler(tvDB_SelectedNodeChanged); } if (UCIsSingle || UCAllSelect) { this.lboxLeft.SelectionMode = System.Web.UI.WebControls.ListSelectionMode.Single; tvDB.TreeNodeCheckChanged += new TreeNodeEventHandler(tvDB_TreeNodeCheckChanged); } #endregion if (!IsPostBack) { //ClientScriptM.ResponseScript(Page, "GetParent();"); Refresh(); } }
/// <summary> /// 绑定树 /// </summary> private void BindDBTree() { if (!string.IsNullOrEmpty(UCLevel)) { iLevel = SysConvert.ToInt32(UCLevel); } hasDeptID = SysString.GetStringToArrayList(UCShowDeptID, ','); dtDept = OADept.GetDeptInfo(iLevel).DtTable; //this.ShowTitle(); DataRow[] drs = dtDept.Select("FloorCode=0");//最顶层 tvDB.Nodes.Clear(); foreach (DataRow dr in drs) { TreeNode newNode = new TreeNode(); newNode = SetTreeNode(newNode, dr); //设置节点上显示的东西 tvDB.Nodes.Add(newNode); DataRow[] child = dtDept.Select("ParentID=" + dr["ID"].ToString()); if (child.Length > 0) { BindDBTreeSub(newNode, child); } } }
/// <summary> /// 流程类型选择事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ddlProcessTemplate_SelectedIndexChanged(object sender, EventArgs e) { LoadProcessSteps(); if (this.ddlProcessTemplate.SelectedIndex == 0) { this.ddlStepName.Enabled = false; this.ddlStepName.Items.Clear(); } else { this.ddlStepName.Enabled = true; //得到流程类型对应的流程步骤 TemplateAdmin TAdmin = new TemplateAdmin(); String l_strTemplateName = this.ddlProcessTemplate.SelectedValue; DataTable l_dtbDataTable = TAdmin.Templates.GetTemplate(l_strTemplateName).GetVersion(1).GetViewList(); //加入空选择行 DataRow l_dtrDataRow = l_dtbDataTable.NewRow(); l_dtrDataRow[0] = DBNull.Value; l_dtrDataRow[1] = ""; l_dtrDataRow[2] = DBNull.Value; l_dtbDataTable.Rows.InsertAt(l_dtrDataRow, 0); //绑定数据 this.ddlStepName.DataSource = l_dtbDataTable; this.ddlStepName.DataBind(); } #region 根据流程类型绑定特有字段 switch (this.ddlProcessTemplate.SelectedValue) { //公司发文 case ProcessConstString.TemplateName.COMPANY_SEND: case ProcessConstString.TemplateName.DJGT_Send: //renjinquan+ OADept.GetDeptByIfloor(drpGFDept, 1); break; //公司收文 case ProcessConstString.TemplateName.COMPANY_RECEIVE: case ProcessConstString.TemplateName.MERGED_RECEIVE: //renjinquan+ break; //函件收文 case ProcessConstString.TemplateName.LETTER_RECEIVE: OAList.BindHJLX2(ddlHSLetterType, true); break; //函件发文 case ProcessConstString.TemplateName.LETTER_SEND: OAList.BindHJLX(ddlHFLetterType, true); OADept.GetDeptByIfloor(this.ddlHFDept, 1); break; //程序文件 case ProcessConstString.TemplateName.PROGRAM_FILE: OADept.GetDeptByIfloor(this.ddlPFDept, 1); break; //工作联系单 case ProcessConstString.TemplateName.AFFILIATION: OADept.GetDeptByIfloor(this.ddlWRHostDept, 1); OADept.GetDeptByIfloor(this.ddlWRMainSendDept, 1); break; //请示报告 case ProcessConstString.TemplateName.INSTUCTION_REPORT: OAUser.GetUserByRole(this.ddlMainSendleader, OUConstString.RoleName.COMPANY_LEADER); OADept.GetDeptByIfloor(this.ddlUnderTakeDept, 1); OADept.GetDeptByIfloor(this.ddlHostDept, 1); break; } #endregion //chenye //LoadProcessList(); }
/// <summary> /// 绑定部门 /// </summary> /// <param name="ddl"></param> private void BindDeptList(DropDownList ddl) { OADept.GetDeptByIfloor(ddlDept, 1); }
public void SetPrintBeginExport(UC_Print ucPrint, B_PF cEntity) { switch (ucPrint.FileName) { case "程序文件表单": SetBaseExportData(ucPrint, cEntity); ucPrint.ExportData.Add(cEntity.CirculateSignDept); //<col>部门:|inner</col> ucPrint.ExportData.Add(cEntity.CirculateSignUserName); //<col>人员:|inner</col> ucPrint.ExportData.Add(cEntity.CirculateDeptName); //<col>部门: |inner</col> ucPrint.ExportData.Add(cEntity.CirculateName); //<col>人员: |inner</col> ucPrint.ExportData.Add(cEntity.CirculateComment); //<col>意见:|right</col> ucPrint.ExportData.Add(ucPrint.AttachFilesList(cEntity.FileList)); //<col>附件:|down</col> break; case "管理程序变更申请表": if (cEntity.ProgramSort == "管理程序") { ucPrint.ExportData.Add("管理程序变更申请表"); //<col>管理程序变更申请表|shift</col> ucPrint.ExportData.Add("HN-LL431"); //<col>HN-LL431|shift</col> } if (cEntity.ProgramSort == "工作程序") { ucPrint.ExportData.Add("工作程序变更申请表"); //<col>管理程序变更申请表|shift</col> ucPrint.ExportData.Add("HN-LL432"); //<col>HN-LL431|shift</col> } if (cEntity.ProgramSort == "部门级管理程序") { ucPrint.ExportData.Add("管理程序变更申请表"); //<col>管理程序变更申请表|shift</col> ucPrint.ExportData.Add("HN-LL433"); //<col>HN-LL431|shift</col> } ucPrint.ExportData.Add(string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year); //<col>年份|shift</col> /*待定*/ ucPrint.ExportData.Add(cEntity.SerialID); //<col>序号|shift</col> ucPrint.ExportData.Add(cEntity.DocumentTitle); //<col>文件名称|right</col> ucPrint.ExportData.Add(cEntity.ProgramCode + " , " + cEntity.Edition); //<col>编码版本|right</col> ucPrint.ExportData.Add(OADept.GetDeptName(cEntity.SendDeptID)); //<col>申请部门|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString())); //<col>申请日期|right</col> ucPrint.ExportData.Add(cEntity.ApplyStyle); //<col>申请类型|right</col> //ucPrint.ExportData.Add(cEntity.ApplyReason); //<col>原因:|inner</col> //ucPrint.ExportData.Add(cEntity.RelationProgram/*RelationDemand*/); //<col>可能受到影响的程序:|inner</col> ucPrint.ExportData.Add(cEntity.Drafter); //<col>申请人姓名|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString())); //<col>日期|right</col> ucPrint.ExportData.Add(OAUser.GetDeptManager(cEntity.SendDeptID, ConstString.Grade.ZERO)); //<col>编制部门负责人姓名|right</col> //M_20100414 huangqi des:编写时间改为FirstDraftDate //begin if (cEntity.FirstDraftDate != DateTime.MinValue) { ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.FirstDraftDate.ToShortDateString())); //<col>日期 |right</col> } else { ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString())); } //end //ucPrint.ExportData.Add(cEntity.QualityApproveComment //PF.GetNotionComment(cEntity.ProcessID, ConstString.ProcessStepName.PROGRAM_QUALITY)*/); //<col>意见:|inner</col> ucPrint.ExportData.Add(cEntity.AuditName); //<col>审核人姓名|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.AuditDate.ToShortDateString())); //<col>日期 |right</col> ucPrint.ExportData.Add(cEntity.QualityNames); //<col>质保处负责人姓名|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.QualityDate.ToShortDateString())); //<col>日期 |right</col> ucPrint.ExportData.Add("该程序已经更新发布"); //<col>网页更新结果:|inner</col> /*待定*/ ucPrint.ExportData.Add("" /*OAList.GetUserNameByWorkItemID(cEntity.WorkItemID)*/); //<col>信息文档处操作人姓名|right</col> //ucPrint.ExportData.Add(string.IsNullOrEmpty(cEntity.SendDate.ToShortDateString()) ? // DateTime.Now.ToShortDateString() : ucPrint.CheckDateTime(cEntity.SendDate.ToShortDateString()) // ); //<col>日期 |right</col> ucPrint.ExportData.Add(string.IsNullOrEmpty(ucPrint.CheckDateTime(cEntity.SendDate.ToShortDateString())) ? DateTime.Now.ToShortDateString() : ucPrint.CheckDateTime(cEntity.SendDate.ToShortDateString())); //<col>日期 |right</col> ucPrint.AttachFileList = cEntity.FileList; ucPrint.Position = "可能受到影响的程序:";//(string)ucPrint.ExportData[2]; ucPrint.Mode = WriteMode.Up; break; case "管理程序封面模板": if (cEntity.ProgramSort == "管理程序") { ucPrint.ExportData.Add("管理程序"); //<col>管理程序|shift</col> //ucPrint.ExportData.Add("HN-LL431-" + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID); //<col>HN编码:|right</col> } if (cEntity.ProgramSort == "工作程序") { ucPrint.ExportData.Add("工作程序"); //<col>管理程序|shift</col> //ucPrint.ExportData.Add("HN-LL432-" + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID); //<col>HN编码:|right</col> cEntity.QualityNames = ""; } if (cEntity.ProgramSort == "部门级管理程序") { ucPrint.ExportData.Add("管理程序"); //<col>管理程序|shift</col> //ucPrint.ExportData.Add("HN-LL433-" + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID); //<col>HN编码:|right</col> } ucPrint.ExportData.Add(cEntity.ProgramCode); ucPrint.ExportData.Add(cEntity.Edition); //<col>版次:|right</col> ucPrint.ExportData.Add(cEntity.DocumentTitle); //<col>程序名称|shift</col> if (cEntity.ApproveDate.ToShortDateString() == DateTime.MinValue.ToShortDateString()) { ucPrint.ExportData.Add(""); ucPrint.ExportData.Add(""); } else { ucPrint.ExportData.Add(cEntity.ApproveName); //<col>批准实施:|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.ApproveDate.ToShortDateString())); //<col>生效日期:|right</col> } ucPrint.ExportData.Add(cEntity.WriteName); //<col>编制姓名|shift</col> //M_20100414 huangqi des:编写时间改为FirstDraftDate //begin if (cEntity.FirstDraftDate != DateTime.MinValue) { ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.FirstDraftDate.ToShortDateString())); //<col>日期 |shift</col> } else { ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString())); } //end ucPrint.ExportData.Add(cEntity.CheckName); //<col>校核姓名|shift</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.CheckDate.ToShortDateString())); //<col>校核日期|shift</col> ucPrint.ExportData.Add(cEntity.AuditName); //<col>审核姓名|shift</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.AuditDate.ToShortDateString())); //<col>审核日期|shift</col> ucPrint.ExportData.Add(cEntity.QualityNames); //<col>质保姓名|shift</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.QualityDate.ToShortDateString())); //<col>质保日期|shift</col> ucPrint.ExportData.Add(OADept.GetDeptName(cEntity.SendDeptID)); //<col>程序编制部门:|shift</col> ucPrint.AttachFileList = cEntity.FileList; //ucPrint.Position = "";//(string)ucPrint.ExportData[2]; //ucPrint.Mode = WriteMode.Up; break; case "程序审查意见落实表": //string num = ""; //if (cEntity.ProgramSort == "管理程序") //{ // num = "HN-LL431-"; //} //if (cEntity.ProgramSort == "工作程序") //{ // num = "HN-LL432-"; //} //if (cEntity.ProgramSort == "部门级管理程序") //{ // num = "HN-LL433-"; //} //ucPrint.ExportData.Add(num + (string.IsNullOrEmpty(cEntity.Year) ? DateTime.Now.Year.ToString() : cEntity.Year) + "-" + cEntity.SerialID); //<col>年份|shift</col> ucPrint.ExportData.Add(cEntity.ProgramCode); ///*待定*/ ucPrint.ExportData.Add(""); //<col>第|right</col> ucPrint.ExportData.Add(cEntity.DocumentTitle); //<col>程序名称:|inner</col> ucPrint.ExportData.Add(cEntity.ProgramCode + " " + cEntity.Edition); //<col>程序编码和版本:|inner</col> //renjinquan+ //if (cEntity.ProgramSort == "管理程序") //{ // //ucPrint.ExportData.Add("管理程序"); //<col>管理程序|shift</col> // ucPrint.ExportData.Add("HN-LL431"+" " + cEntity.Edition); //<col>HN编码:|right</col> //} //if (cEntity.ProgramSort == "工作程序") //{ // //ucPrint.ExportData.Add("工作程序"); //<col>管理程序|shift</col> // ucPrint.ExportData.Add("HN-LL432"+" " + cEntity.Edition); //<col>HN编码:|right</col> //} //if (cEntity.ProgramSort == "部门级管理程序") //{ // //ucPrint.ExportData.Add("管理程序"); //<col>管理程序|shift</col> // ucPrint.ExportData.Add("HN-LL433"+" " + cEntity.Edition); //<col>HN编码:|right</col> //} //ucPrint.ExportData.Add(cEntity.RelationDemand); //<col>对相关程序修订要求或建议:|inner</col> //ucPrint.ExportData.Add(cEntity.RelationProgram/*cEntity.DocumentTitle + "" + cEntity.ProgramCode*/); //<col>相关程序名称和编码:|inner</col> //ucPrint.ExportData.Add(cEntity.ApproveName); //<col>批准|right</col> //ucPrint.ExportData.Add(cEntity.ApproveDate.ToShortDateString()); //<col>日期|right</col> ucPrint.ExportData.Add(cEntity.AuditName); //<col>审核|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.AuditDate.ToShortDateString())); //<col>日期 |right</col> ucPrint.ExportData.Add(cEntity.CheckName); //<col>校核|right</col> ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.CheckDate.ToShortDateString())); //<col>日期 |right</col> ucPrint.ExportData.Add(cEntity.WriteName); //<col>编制|right</col> //M_20100414 huangqi des:编写时间改为FirstDraftDate //begin if (cEntity.FirstDraftDate != DateTime.MinValue) { ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.FirstDraftDate.ToShortDateString())); //<col>日期 |right</col> } else { ucPrint.ExportData.Add(ucPrint.CheckDateTime(cEntity.DraftDate.ToShortDateString())); } //end ucPrint.AttachFileList = cEntity.FileList; //ucPrint.Position = "";//(string)ucPrint.ExportData[2]; //ucPrint.Mode = WriteMode.Up; break; } }
/// <summary> /// 实体加载 /// </summary> protected override void EntityToControl() { B_FinanceCCBX entity = base.EntityData != null ? base.EntityData as B_FinanceCCBX : new B_FinanceCCBX(); //拟稿 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT && !base.IsPreview) { //编制部门 OADept.GetDeptByUser(this.ddlBianZhiBuMen, CurrentUserInfo.UserName, 1, true, false); //部门负责人 if (this.ddlBianZhiBuMen.Items.Count > 0) { ddlBianZhiBuMen_SelectedIndexChanged(null, null); } //拟稿日期 txtNiGaoRiQi.Text = DateTime.Now.ToString("yyyy-MM-dd"); //拟稿人 this.txtNiGaoRen.Text = CurrentUserInfo.DisplayName; this.txtNiGaoRenID.Text = CurrentUserInfo.UserName; this.txtPhone.Text = CurrentUserInfo.OfficePhone; if (entity.ChuXingDetails.Count == 0) //默认加载一行 不然日期控件会失效 { ucChuXingMingXi.UCIsFirst = true; } OAUser.GetUserByRole(this.ddlGSLingDao, OUConstString.RoleName.COMPANY_LEADER); if (base.StepName == ProcessConstString.StepName.STEP_DRAFT && !base.IsPreview) { if (string.IsNullOrEmpty(base.WorkItemID)) { this.lbJs.Text = "<script>ShowMyDiv();</script>"; } } } else { FormsMethod.SetDropDownList(this.ddlBianZhiBuMen, entity.DepartmentID, entity.Department); FormsMethod.SetDropDownList(this.ddlBuMenZhuGuan, entity.BuMenZhuGuanID, entity.BuMenZhuGuan); FormsMethod.SetDropDownList(this.ddlGSLingDao, entity.GongSiLingDaoID, entity.GongSiLingDao); this.txtNiGaoRen.Text = entity.Drafter; this.txtNiGaoRenID.Text = entity.DrafterID; } //主管领导 if (base.StepName == ProcessConstString.StepName.FinanceCCBXStepName.STEP_DEPTVERIFY) { OAUser.GetUserByRole(this.ddlGSLingDao, OUConstString.RoleName.COMPANY_LEADER); OAUser.GetUserByRole(this.ddlCaiWu, OUConstString.RoleName.CaiWu); OAUser.GetUserByRole(this.ddlPeiXunChu, OUConstString.RoleName.PeiXunChuLD); } //培训处 if (base.StepName == ProcessConstString.StepName.FinanceCCBXStepName.STEP_PXCVERIFY) { OAUser.GetUserByRole(this.ddlGSLingDao, OUConstString.RoleName.COMPANY_LEADER); OAUser.GetUserByRole(this.ddlCaiWu, OUConstString.RoleName.CaiWu); } //公司领导 if (base.StepName == ProcessConstString.StepName.FinanceCCBXStepName.STEP_GSLDVERIFY) { OAUser.GetUserByRole(this.ddlCaiWu, OUConstString.RoleName.CaiWu); } //财务 if (base.StepName == ProcessConstString.StepName.FinanceCCBXStepName.STEP_CWVERIFY) { } //反馈报销人 if (base.StepName == ProcessConstString.StepName.FinanceCCBXStepName.STEP_FANKUI) { } if (txtNiGaoRen.Text == "") { txtNiGaoRen.Text = entity.Drafter; } if (txtPhone.Text == "") { txtPhone.Text = entity.Phone; } if (txtNiGaoRiQi.Text == "") { txtNiGaoRiQi.Text = entity.DraftDate.ToString("yyyy-MM-dd"); } FormsMethod.SelectedDropDownList(this.ddlType, entity.Type); txtType.Text = entity.Type; if (txtType.Text != "") { ddlType_SelectedIndexChanged(null, null); } txtChuChaDanHao.Text = entity.ChuChaDanHao; txtBianHao.Text = entity.DocumentNo; FormsMethod.SelectedDropDownList(this.ddlZhiCheng, entity.ZhiWuZhiChengID, entity.ZhiWuZhiCheng); FormsMethod.SelectedDropDownList(this.ddlBianZhiBuMen, entity.DepartmentID, entity.Department); FormsMethod.SelectedDropDownList(this.ddlJieKuan, entity.GeRenJieKuan); if (entity.DanJuZhangShu == Int32.MinValue) { txtDanJuZhangShu.Text = ""; } else { txtDanJuZhangShu.Text = entity.DanJuZhangShu.ToString(); } txtShiYou.Text = entity.ShiYou; ucChuXingMingXi.UCCXList = entity.ChuXingDetails; foreach (var item in entity.QiTaFeiYongDetails) { if (item.Name == "住宿费") { txtZhuSuRT.Text = item.RenTian.ToString(); txtZhuSuJE.Text = item.JinE.ToString(); } else if (item.Name == "托运费") { txtTuoYunRT.Text = item.RenTian.ToString(); txtTuoYunJE.Text = item.JinE.ToString(); } else if (item.Name == "其他") { txtQiTaRT.Text = item.RenTian.ToString(); txtQiTaJE.Text = item.JinE.ToString(); } } //其他费用小计 if (entity.QiTaFeiYongXiaoJi == Decimal.MinValue) { txtQiTaXiaoJi.Text = ""; } else { txtQiTaXiaoJi.Text = entity.QiTaFeiYongXiaoJi.ToString(); } foreach (var item in entity.BuTieDetails) { if (item.Name == "住勤补贴") { txtZhuQinRT.Text = item.RenTian.ToString(); txtZhuQinJE.Text = item.JinE.ToString(); } else if (item.Name == "住宿节约补贴") { txtZhuSuJYRT.Text = item.RenTian.ToString(); txtZhuSuJYJE.Text = item.JinE.ToString(); } else if (item.Name == "未乘坐卧铺补贴") { txtWeiWoPuRT.Text = item.RenTian.ToString(); txtWeiWoPuBuJE.Text = item.JinE.ToString(); } else if (item.Name == "在途补贴") { txtZaiTuRT.Text = item.RenTian.ToString(); txtZaiTuJE.Text = item.JinE.ToString(); } } if (entity.BuTieXiaoJi == Decimal.MinValue) { txtBuTieXiaoJi.Text = ""; } else { txtBuTieXiaoJi.Text = entity.BuTieXiaoJi.ToString(); } //培训特有 txtLiXiangHao.Text = entity.LiXiangHao; FormsMethod.SelectedDropDownList(this.ddlYuSuanNei, entity.YuSuanNei); txtLiXiangJE.Text = entity.LiXiangJE.ToString(); if (entity.HeJi == Decimal.MinValue) { txtHeJi.Text = ""; } else { txtHeJi.Text = entity.HeJi.ToString(); } txtCaiWuJE.Text = entity.CaiWuShenHeJinE.ToString(); txtZhuQinJE.ToolTip = entity.ZhuQinToolTip; txtZhuSuJE.ToolTip = entity.ZhuSuToolTip; txtZiXingJinE.ToolTip = entity.ZiXingToolTip; FormsMethod.SelectedDropDownList(this.ddlBuMenZhuGuan, entity.BuMenZhuGuanID, entity.BuMenZhuGuan); FormsMethod.SelectedDropDownList(this.ddlGSLingDao, entity.GongSiLingDaoID, entity.GongSiLingDao); FormsMethod.SelectedDropDownList(this.ddlCaiWu, entity.CaiWuID, entity.CaiWu); FormsMethod.SelectedDropDownList(this.ddlPeiXunChu, entity.PeiXunChuLingDaoID, entity.PeiXunChuLingDao); txtChangQiBuTie.Text = entity.ChangQiBuTie; if (entity.ZiXingTianShu == Int32.MinValue) { txtZiXingTianShu1.Text = ""; txtZiXingTianShu2.Text = ""; } else { txtZiXingTianShu1.Text = entity.ZiXingTianShu.ToString(); txtZiXingTianShu2.Text = entity.ZiXingTianShu.ToString(); } if (entity.ZiXingJinE == Decimal.MinValue) { txtZiXingJinE.Text = ""; } else { txtZiXingJinE.Text = entity.ZiXingJinE.ToString(); } //提示信息 this.txtTiShiXinXi.Text = entity.Message; this.txtTianJia.Text = entity.MessageAdd; }
/// <summary> /// 实体加载 /// </summary> protected override void EntityToControl() { B_DJGTSend entity = base.EntityData != null ? base.EntityData as B_DJGTSend : new B_DJGTSend(); ucAttachment.UCDataList = entity.FileList; //提示信息 this.txtMyPrompt.Text = entity.MyPrompt; this.txtAllPrompt.Text = entity.Prompt; //是否核稿退回 this.wfIsDeny.Text = entity.IsCheckDraftBack.ToString(); FormsMethod.SetDropDownList(this.ddlCheckDrafter, entity.CheckDrafterID, entity.CheckDrafter); FormsMethod.SetDropDownList(this.ddlHostDept, entity.HostDeptID, entity.HostDept); FormsMethod.SetDropDownList(this.ddlSigner, entity.SignerID, entity.Signer); this.txtDocumentYear.Text = entity.DocumentYear; this.txtDocumentNum.Text = entity.DocumentNum; this.txtDocumentNo.Text = entity.DocumentNo; this.ddlUrgentDegree.SelectedValue = entity.UrgentDegree; this.txtDocumentTitle.Text = entity.DocumentTitle; this.txtSubjectWord.Text = entity.SubjectWord; this.txtMainSender.Text = entity.MainSenders; this.txtCopySender.Text = entity.CopySenders; //this.txtPhoneNum.Text = entity.PhoneNum; this.txtPhoneNum.Text = string.IsNullOrEmpty(entity.ReceiveUserID) ? CurrentUserInfo.OfficePhone : entity.PhoneNum; this.txtShareCount.FSText = entity.ShareCount; this.txtSheetCount.FSText = entity.SheetCount; this.txtTypist.Text = entity.Typist; this.txtChecker.Text = entity.Checker; this.txtReChecker.Text = entity.ReChecker; //发文日期 this.txtSendDate.Text = entity.SendDate == DateTime.MinValue ? string.Empty : entity.SendDate.ToString(ConstString.DateFormat.Long); //签发日期 this.txtSignDate.Text = entity.SignDate == DateTime.MinValue ? string.Empty : entity.SignDate.ToString(ConstString.DateFormat.Long); this.txtSignCommentView.Text = entity.SignComment; //核稿日期 this.txtSecretaryCheckDate.Text = entity.VerifyDate == DateTime.MinValue ? string.Empty : entity.VerifyDate.ToString(ConstString.DateFormat.Long); //审稿日期 this.txtVerifyDate.Text = entity.CheckDraftDate == DateTime.MinValue ? string.Empty : entity.CheckDraftDate.ToString(ConstString.DateFormat.Long); //拟稿日期 this.txtDraftDate.Text = entity.DraftDate == DateTime.MinValue ? string.Empty : entity.DraftDate.ToString(ConstString.DateFormat.Long); //拟稿人 this.txtDrafter.Text = entity.Drafter; this.wfDrafterID.Text = entity.DrafterID; //会签部门 this.txtDeptSigners.Text = entity.IsFormSave ? entity.NewDeptSigners : entity.DeptSigners; this.wfDeptSignIDs.Text = entity.IsFormSave ? entity.NewDeptSignerIDs : entity.DeptSignerIDs; //公司领导会签 this.txtLeadSigners.Text = entity.IsFormSave ? entity.NewLeadSigners : entity.LeadSigners; this.wfLeaderSignIDs.Text = entity.IsFormSave ? entity.NewLeadSignerIDs : entity.LeadSignerIDs; //秘书核稿 this.txtSecretaryChecker.Text = entity.Verifier; //传阅 this.hDeptID.Value = entity.CirculateDeptIDs; this.txtDeptName.Text = entity.CirculateDepts; this.hUserID.Value = entity.CirculateLeaderIDs; this.txtUserName.Text = entity.CirculateLeaders; //发文类型 this.ddlType.SelectedValue = entity.SendType; if (entity != null) { switch (base.StepName) { case ProcessConstString.StepName.STEP_DRAFT: if (!base.IsPreview) { //主办部门 OADept.GetDeptByUser(this.ddlHostDept, string.IsNullOrEmpty(entity.ReceiveUserID) ? CurrentUserInfo.UserName : entity.ReceiveUserID, 1, true, false); FormsMethod.SelectedDropDownList(this.ddlHostDept, entity.HostDeptID); FormsMethod.SelectedDropDownList(this.ddlCheckDrafter, entity.CheckDrafterID); } break; case ProcessConstString.StepName.SendStepName.STEP_VERIFY: //签发人 if (!base.IsPreview) { OAUser.GetUserByRole(this.ddlSigner, OUConstString.RoleName.PartysLead); FormsMethod.SelectedDropDownList(this.ddlSigner, entity.SignerID); } break; case ProcessConstString.StepName.SendStepName.STEP_DEPT: this.txtCounterSigners.Text = FormsMethod.GetHaveSignInfo(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_DEPT, base.TemplateName); this.txtComment.Text = entity.DeptSignComment; break; case ProcessConstString.StepName.SendStepName.STEP_LEADER: this.txtCounterSigners.Text = FormsMethod.GetHaveSignInfo(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_DEPT, base.TemplateName) + FormsMethod.GetHaveSignInfo(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_LEADER, base.TemplateName); this.txtComment.Text = entity.LeadSignComment; break; case ProcessConstString.StepName.SendStepName.STEP_SIGN: this.txtDeptSigners.Text = FormsMethod.GetSingers(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_DEPT, base.TemplateName); this.txtLeadSigners.Text = FormsMethod.GetSingers(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_LEADER, base.TemplateName); string sign1 = FormsMethod.GetHaveSignInfo(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_DEPT, base.TemplateName); string sign2 = FormsMethod.GetHaveSignInfo(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_LEADER, base.TemplateName); string sign3 = FormsMethod.GetHaveSignInfo(base.ProcessID, base.WorkItemID, ProcessConstString.StepName.SendStepName.STEP_SIGN, base.TemplateName); this.txtCounterSigners.Text = sign1 + "\n" + sign2 + "\n" + sign3; this.txtComment.Text = entity.SignComment; break; case ProcessConstString.StepName.SendStepName.STEP_DISTRIBUTE: //预设发文号 if (!base.IsPreview) { if (entity.IsHaveChecked == false) { B_DocumentNo_SN sn = new B_DocumentNo_SN(); this.txtDocumentYear.Text = DateTime.Now.Year.ToString(); this.txtDocumentNum.Text = sn.GetNo(base.TemplateName); this.txtDocumentNo.Text = "海核发〔" + DateTime.Now.Year.ToString() + "〕" + this.txtDocumentNum.Text + "号"; } else { this.txtDocumentYear.Text = entity.DocumentYear; this.txtDocumentNum.Text = entity.DocumentNum; this.txtDocumentNo.Text = entity.DocumentNo; } } this.txtDeptSigners.Text = entity.DeptHaveSigners; this.txtLeadSigners.Text = entity.LeadHaveSigners; break; case ProcessConstString.StepName.SendStepName.STEP_PROOF: this.txtDeptSigners.Text = entity.DeptHaveSigners; this.txtLeadSigners.Text = entity.LeadHaveSigners; break; } } //党群工作处处长处理后显示label形式的处长姓名与时间 if (entity.SignDate != DateTime.MinValue) { this.ddlSigner.Visible = false; this.txtSignDate.Visible = false; this.lbSigner.Visible = true; this.lbSignDate.Visible = true; this.lbSigner.Text = entity.Signer; this.lbSignDate.Text = entity.SignDate.ToString(ConstString.DateFormat.Long); } //核稿处理后显示label形式的核稿人姓名与时间 if (entity.VerifyDate != DateTime.MinValue) { this.txtSecretaryChecker.Visible = false; this.txtSecretaryCheckDate.Visible = false; this.lbChecker.Visible = true; this.lbSecretaryCheckDate.Visible = true; this.lbChecker.Text = entity.Verifier; this.lbSecretaryCheckDate.Text = entity.VerifyDate.ToString(ConstString.DateFormat.Long); } //审稿处理后显示label形式的审稿人姓名与时间 if (entity.CheckDraftDate != DateTime.MinValue) { this.ddlCheckDrafter.Visible = false; this.txtVerifyDate.Visible = false; this.lbCheckDrafter.Visible = true; this.lbVerifyDate.Visible = true; this.lbCheckDrafter.Text = entity.CheckDrafter; this.lbVerifyDate.Text = entity.CheckDraftDate.ToString(ConstString.DateFormat.Long); } //拟稿处理后显示label形式的拟稿人姓名与时间 if (entity.DraftDate != DateTime.MinValue) { this.txtDrafter.Visible = false; this.txtDraftDate.Visible = false; this.lbDrafter.Visible = true; this.lbDraftDate.Visible = true; this.lbDrafter.Text = entity.Drafter; this.lbDraftDate.Text = entity.DraftDate.ToString(ConstString.DateFormat.Long); } ////校对处理后显示label形式的校对人姓名与时间 //if (entity.CreateDate != DateTime.MinValue) //{ // this.txtChecker.Visible = false; // this.lbCChecker.Visible = true; // this.lbCChecker.Text = entity.Checker + strNewLine + entity.CreateDate; //} }
/// <summary> /// 实体加载 /// </summary> protected override void EntityToControl() { B_Finance entity = base.EntityData != null ? base.EntityData as B_Finance : new B_Finance(); //拟稿人 this.txtNiGaoRen.Text = string.IsNullOrEmpty(entity.ReceiveUserName) ? CurrentUserInfo.DisplayName : entity.ReceiveUserName; this.txtNiGaoRenID.Text = string.IsNullOrEmpty(entity.ReceiveUserID) ? CurrentUserInfo.UserName : entity.ReceiveUserID; //新版OA时间精确到秒(控制时间的显示格式) //bool isOld = entity.DraftDate < base.OAStartTime; //职务 drpZhiWu.DataSource = GetPostList(); drpZhiWu.DataBind(); drpZhiCheng.DataSource = GetTitleList(); drpZhiCheng.DataBind(); //附件 ucAttachment.UCDataList = entity.FileList; this.txtFeeYuSuan.Text = entity.FeeYuSuan; this.txtFeeFaSheng.Text = entity.FeeFaSheng; this.txtShenPiYiJian.Text = entity.ShenPiYiJian; //编制部门及预算 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT && !base.IsPreview) { OADept.GetDeptByUser(this.ddlBianZhiBuMen, string.IsNullOrEmpty(entity.ReceiveUserID) ? CurrentUserInfo.UserName : entity.ReceiveUserID, 1, true, false); FormsMethod.SelectedDropDownList(this.ddlBianZhiBuMen, entity.BianZhiBuMenID); B_FinanceDeptInfo bllInfo = new B_FinanceDeptInfo(); M_FinanceDeptInfo info = bllInfo.GetFinanceDeptInfoByDeptID(DateTime.Now.Year.ToString(), this.ddlBianZhiBuMen.SelectedValue); this.txtFeeYuSuan.Text = info.TripBudgetCost; this.txtFeeFaSheng.Text = info.TripUseCost; string ManagerDeptID = OADept.GetDeptID("总经理部"); Double FeeFa = Convert.ToDouble(string.IsNullOrEmpty(txtFeeFaSheng.Text) ? "0" : txtFeeFaSheng.Text); Double FeeYu = Convert.ToDouble(string.IsNullOrEmpty(txtFeeYuSuan.Text) ? "0" : txtFeeYuSuan.Text); Double Rate = (string.IsNullOrEmpty(FeeRate) == true ? 0.1 : Convert.ToDouble(FeeRate)); if ((FeeFa - FeeYu) / FeeYu > Rate) { OAUser.GetUserByDeptPost(ddlZongJingLi, ManagerDeptID, OUConstString.PostName.ZONGJINGLI, true, false, 1); ddlZongJingLi.Enabled = true; this.SubmitStatus = 1; } else if (FeeFa > FeeYu) { OAUser.GetUserByDeptPost(ddlZhuGuanLingDao, ManagerDeptID, OUConstString.PostName.FUZONGJINGLI, true, false, 1); ddlZhuGuanLingDao.Enabled = true; this.SubmitStatus = 2; } else if (FeeFa <= FeeYu) { OAUser.GetUserByDeptPost(ddlChuLingDao, this.ddlBianZhiBuMen.SelectedValue, OUConstString.PostName.CHUZHANG, false, true, 0); ddlChuLingDao.Enabled = true; this.SubmitStatus = 3; } ListItem item = new ListItem(this.txtNiGaoRen.Text, this.txtNiGaoRenID.Text); if (ddlChuLingDao.Items.Contains(item)) { ddlChuLingDao.Items.Clear(); OAUser.GetUserByDeptPost(ddlZhuGuanLingDao, ManagerDeptID, OUConstString.PostName.FUZONGJINGLI, true, false, 1); ddlZhuGuanLingDao.Enabled = true; this.SubmitStatus = 2; } else if (ddlZhuGuanLingDao.Items.Contains(item)) { ddlZhuGuanLingDao.Items.Clear(); OAUser.GetUserByDeptPost(ddlZongJingLi, ManagerDeptID, OUConstString.PostName.ZONGJINGLI, true, false, 1); ddlZongJingLi.Enabled = true; this.SubmitStatus = 1; } } else { FormsMethod.SetDropDownList(this.ddlBianZhiBuMen, entity.BianZhiBuMenID, entity.Department); FormsMethod.SetDropDownList(this.ddlZongJingLi, entity.GeneralManagerID, entity.GeneralManager); FormsMethod.SetDropDownList(this.ddlZhuGuanLingDao, entity.ChargeLeaderID, entity.ChargeLeader); FormsMethod.SetDropDownList(this.ddlChuLingDao, entity.DepartmentLeaderID, entity.DepartmentLeader); } //申请单编号 this.txtBianHao.Text = entity.DocumentNo; FormsMethod.SelectedDropDownList(this.drpZhiWu, entity.ZhiWu); FormsMethod.SelectedDropDownList(this.drpZhiCheng, entity.ZhiCheng); //部门负责人 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT && !base.IsPreview) { if (this.ddlBianZhiBuMen.Items.Count > 0) { OAUser.GetUserByDeptPost(this.ddlFuZeRen, this.ddlBianZhiBuMen.SelectedValue, OUConstString.PostName.CHUZHANG, true, true); } FormsMethod.SelectedDropDownList(this.ddlFuZeRen, entity.FuZeRenID); } else { FormsMethod.SetDropDownList(this.ddlFuZeRen, entity.FuZeRenID, entity.DeptPrincipal); } //订票处 if (base.StepName == ProcessConstString.StepName.FinanceStepName.STEP_DepartLeader || base.StepName == ProcessConstString.StepName.FinanceStepName.STEP_ChargeLeader || base.StepName == ProcessConstString.StepName.FinanceStepName.STEP_GeneralManager && !base.IsPreview) { string[] arrayBookingOffice = OAUser.GetUserByRoleName(OUConstString.RoleName.BookingOffice); this.txtBookingOfficeID.Text = arrayBookingOffice[0]; } //是否退回 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT) { this.txtIsBack.Text = entity.IsBack.ToString(); } //拟稿人及日期 if (entity.DraftDate != DateTime.MinValue) { this.lblNiGaoRiQi.Text = entity.DraftDate.ToString(DateFormat); //拟稿人显示非下拉列表框形式 this.txtNiGaoRen.Visible = false; this.lbNiGaoRen.Visible = true; //this.lbNiGaoRen.Text = entity.Drafter + strNewLine + entity.DraftDate.ToString(ConstString.DateFormat.Long); this.lbNiGaoRen.Text = entity.Drafter; } else { this.lblNiGaoRiQi.Text = DateTime.Now.ToString(DateFormat); } //抄送 this.txtChaoSong.Text = entity.CopySend; this.txtChaoSongID.Text = entity.ChaoSongID; this.txtChaoSongDeptID.Text = entity.ChaoSongDeptID; //主题 this.txtZhuTi.Text = entity.DocumentTitle; this.txtTongXing.Text = entity.TongXingRenYuan; //出差任务 //this.txtNeiRong.Text = SysString.HtmlToTextCode(entity.Content); this.txtChuChaiRenWu.Text = entity.ChuChaiRenWu; this.timeChuFa.Text = entity.ChuFaShiJian; this.timeHuiCheng.Text = entity.HuiChengShiJian; //商务信息 this.txtShangWu.Text = entity.ShangWuXinXi; //目的地 this.txtDestination.Text = entity.Destination; //拟稿人 //this.txtNiGaoRen.Text = entity.Drafter; //this.txtNiGaoRenID.Text = entity.NiGaoRenID; //提示信息 this.txtTiShiXinXi.Text = entity.Message; this.txtBanShuiXinXi.Text = entity.Message; //提示信息添加 this.txtTianJia.Text = entity.MessageAdd; this.txtGeneralManagerID.Text = entity.GeneralManagerID; this.txtChargeLeaderID.Text = entity.ChargeLeaderID; this.txtDepartmentLeaderID.Text = entity.DepartmentLeaderID; }
/// <summary> /// 确定 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnOK_Click(object sender, EventArgs e) { #region 获得部门ID和Name string deptID = string.Empty; //部门id string deptName = string.Empty; ArrayList arrCheckedDeptID = new ArrayList(); foreach (TreeNode node in tvDB.CheckedNodes) { arrCheckedDeptID.Add(node.Value); } if (arrCheckedDeptID.Count > 0) { foreach (object o in arrCheckedDeptID) { if (o.ToString() != string.Empty) { deptID += ";" + o.ToString(); deptName += ";" + OADept.GetDeptName(o.ToString()); } } if (deptID.Length > 0) { deptID = deptID.Substring(1); } if (deptName.Length > 0) { deptName = deptName.Substring(1); } } #endregion #region 获得部门成员ID和Name string deptUserID = string.Empty; string deptUserName = string.Empty;//用户名字 ArrayList arrDeptUserName = new ArrayList(); ArrayList arrDeptUserID = new ArrayList(); foreach (ListItem item in lboxRight.Items) { arrDeptUserID.Add(item.Value); arrDeptUserName.Add(OAUser.GetUserName(item.Value)); } //帐号 deptUserID = GetStringText(arrDeptUserID).Replace(@"\", @"\\"); //姓名 deptUserName = GetStringText(arrDeptUserName); #endregion //#region 获得角色成员ID和Name //string roleUserID = string.Empty; //string roleUserName = string.Empty; //角色用户名 //ArrayList arrRoleUserName = new ArrayList(); //ArrayList arrRoleUserID = new ArrayList(); //foreach (ListItem item in chkRole.Items) //{ // if (item.Selected) // { // arrRoleUserID.Add(item.Value); // arrRoleUserName.Add(item.Text); // } //} ////帐号 //roleUserID = base.GetStringText(arrRoleUserID).Replace(@"\", @"\\"); ////姓名 //roleUserName = base.GetStringText(arrRoleUserName); //#endregion #region 获得部门树上成员ID和Name string deptTreeUserID = string.Empty; string deptTreeUserName = string.Empty;//用户名字 string[] strUsers = new string[2]; GetType1(); if (UCDeptTreeUserIDControl != string.Empty || UCDeptTreeUserNameControl != string.Empty) { foreach (string deptid in arrCheckedDeptID) { strUsers = this.GetDeptMember(deptid); deptTreeUserID += ";" + strUsers[0]; deptTreeUserName += ";" + strUsers[1]; } if (deptTreeUserName.Length > 0) { deptTreeUserName = deptTreeUserName.Substring(1); } if (deptTreeUserID.Length > 0) { deptTreeUserID = deptTreeUserID.Substring(1).Replace(@"\", @"\\"); } } #endregion #region 获得回传脚本 string script = string.Empty; ////1 //if (UCDeptIDControl != string.Empty) //{ // script += base.GetJSscriptValue(UCDeptIDControl, deptID); //} //if (UCDeptNameControl != string.Empty) //{ // script += base.GetJSscriptValue(UCDeptNameControl, deptName); // script += base.GetJSscriptTitle(UCDeptNameControl, deptID); //} //2 if (UCDeptUserIDControl != string.Empty) { //script += base.GetJSscriptValue(UCDeptUserIDControl, deptUserID); } if (UCDeptUserNameControl != string.Empty) { //script += base.GetJSscriptValue(UCDeptUserNameControl, deptUserName); //script += base.GetJSscriptTitle(UCDeptUserNameControl, deptUserID); } ////3 //if (UCRoleUserIDControl != string.Empty) //{ // script += base.GetJSscriptValue(UCRoleUserIDControl, roleUserID); //} //if (UCRoleUserNameControl != string.Empty) //{ // script += base.GetJSscriptValue(UCRoleUserNameControl, roleUserName); // script += base.GetJSscriptTitle(UCRoleUserNameControl, roleUserID); //} if (UCDeptTreeUserIDControl != string.Empty) { //script += base.GetJSscriptValue(UCDeptTreeUserIDControl, deptTreeUserID); } if (UCDeptTreeUserNameControl != string.Empty) { //script += base.GetJSscriptValue(UCDeptTreeUserNameControl, deptTreeUserName); //script += base.GetJSscriptTitle(UCDeptTreeUserNameControl, deptTreeUserID); } //如果是部门和人员选到一个文本框上 if (this.UCDeptAndUserControl != string.Empty) { string strDeptAndUser = string.Empty; if (deptName != string.Empty) { strDeptAndUser += deptName; } if (deptUserName != string.Empty) { if (strDeptAndUser != string.Empty) { strDeptAndUser += ";"; } strDeptAndUser += deptUserName; } //script += base.GetJSscriptValue(this.UCDeptAndUserControl, strDeptAndUser); } //script += string.Format("parent.ClosePopDiv('{0}')", base.divPopDivID + base.UCID); #endregion //组成一整条js后运行 //ClientScriptM.ResponseScript(this, script); JScript.Alert(deptUserID + "," + deptUserName, true); }
/// <summary> /// 实体加载 /// </summary> protected override void EntityToControl() { B_FinanceZDBX entity = base.EntityData != null ? base.EntityData as B_FinanceZDBX : new B_FinanceZDBX(); //附件 ucAttachment.UCDataList = entity.FileList; this.txtYuSuanJinE.Text = entity.YuSuanJinE; this.txtLeiJiBaoXiaoJinE.Text = entity.LeiJiBaoXiaoJinE; this.txtIsChaoYuSuan.Text = entity.IsChaoYuSuan == true ? "1" : ""; this.txtIsManager.Text = entity.IsLeader == true ? "1" : ""; string userID = string.IsNullOrEmpty(entity.ReceiveUserID) ? CurrentUserInfo.UserName : entity.ReceiveUserID; if (base.StepName == ProcessConstString.StepName.STEP_DRAFT && !base.IsPreview) { //拟稿日期 txtNiGaoRiQi.Text = DateTime.Now.ToString("yyyy-MM-dd"); //拟稿人 this.txtNiGaoRen.Text = CurrentUserInfo.DisplayName; this.txtNiGaoRenID.Text = CurrentUserInfo.UserName; OADept.GetDeptByUser(this.ddlDepartment, userID, 1, true, false); FormsMethod.SelectedDropDownList(this.ddlDepartment, entity.DepartmentID); string[] ManagerIds = OAUser.GetDeptManagerArray(this.ddlDepartment.SelectedValue, -1); if (ManagerIds[0].Contains(CurrentUserInfo.UserName)) { txtIsManager.Text = "1"; } if (txtIsManager.Text == "1") { OAUser.GetUserByDeptPost(ddlChuLingDao, this.ddlDepartment.SelectedValue, OUConstString.PostName.FUCHUZHANG, false, true, 0); } else { FounderSoftware.Framework.Business.ViewBase vDept = OADept.GetDeptByDeptUser(this.ddlDepartment.SelectedValue, userID, 2); //根据处室部门的ID和用户账号找出用户所属该处室下的科室-修改bug if (!string.IsNullOrEmpty(vDept.IDs)) { OAUser.GetUserByDeptPost(ddlYanShouRen, vDept.IDs, OUConstString.PostName.FUKEZHANG, false, true, 2); } } B_FinanceDeptInfo bllInfo = new B_FinanceDeptInfo(); M_FinanceDeptInfo info = bllInfo.GetFinanceDeptInfoByDeptID(DateTime.Now.Year.ToString(), this.ddlDepartment.SelectedValue); this.txtYuSuanJinE.Text = info.ZDBudgetCost; this.txtLeiJiBaoXiaoJinE.Text = info.ZDUseCost; if (!string.IsNullOrEmpty(entity.ChuLingDaoID)) { FormsMethod.SelectedDropDownList(this.ddlChuLingDao, entity.ChuLingDaoID); } if (!string.IsNullOrEmpty(entity.YanShouRenID)) { FormsMethod.SelectedDropDownList(this.ddlYanShouRen, entity.YanShouRenID); } } else { FormsMethod.SetDropDownList(this.ddlDepartment, entity.DepartmentID, entity.Department); FormsMethod.SetDropDownList(this.ddlZongJingLi, entity.ZongJingLiID, entity.ZongJingLi); FormsMethod.SetDropDownList(this.ddlZhuGuanLingDao, entity.ZhuGuanLingDaoID, entity.ZhuGuanLingDao); FormsMethod.SetDropDownList(this.ddlChuLingDao, entity.ChuLingDaoID, entity.ChuLingDao); FormsMethod.SetDropDownList(this.ddlYanShouRen, entity.YanShouRenID, entity.YanShouRen); FormsMethod.SetDropDownList(this.ddlJingShouRen, entity.JingShouRenID, entity.JingShouRen); } //验收 if (base.StepName == ProcessConstString.StepName.FinanceZDBXStepName.STEP_KeZhang && !base.IsPreview) { OAUser.GetUserByDeptPost(ddlChuLingDao, this.ddlDepartment.SelectedValue, OUConstString.PostName.CHUZHANG, false, true, 0); } //处长审核 if (base.StepName == ProcessConstString.StepName.FinanceZDBXStepName.STEP_ChuZhang && !base.IsPreview) { OAUser.GetUserByRole(this.ddlZongJingLi, OUConstString.RoleName.COMPANY_LEADER); OAUser.GetUserByRole(this.ddlZhuGuanLingDao, OUConstString.RoleName.COMPANY_LEADER); OAUser.GetUserByRole(this.ddlJingShouRen, OUConstString.RoleName.CaiWu); if (txtIsManager.Text != "1") { B_FinanceDeptInfo bllInfo = new B_FinanceDeptInfo(); M_FinanceDeptInfo info = bllInfo.GetFinanceDeptInfoByDeptID(DateTime.Now.Year.ToString(), this.ddlDepartment.SelectedValue); this.txtYuSuanJinE.Text = info.ZDBudgetCost; this.txtLeiJiBaoXiaoJinE.Text = info.ZDUseCost; Double FeeFa = Convert.ToDouble(string.IsNullOrEmpty(txtLeiJiBaoXiaoJinE.Text) ? "0" : txtLeiJiBaoXiaoJinE.Text); Double FeeYu = Convert.ToDouble(string.IsNullOrEmpty(txtYuSuanJinE.Text) ? "0" : txtYuSuanJinE.Text); Double Rate = (string.IsNullOrEmpty(FeeRate) == true ? 0.1 : Convert.ToDouble(FeeRate)); if (FeeFa > FeeYu) { txtIsChaoYuSuan.Text = "1"; } } } //领导审核 if (base.StepName == ProcessConstString.StepName.FinanceZDBXStepName.STEP_LingDao && !base.IsPreview) { OAUser.GetUserByRole(this.ddlJingShouRen, OUConstString.RoleName.CaiWu); } //是否退回 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT) { //this.txtIsBack.Text = entity.IsBack.ToString(); } //拟稿人及日期 if (entity.DraftDate != DateTime.MinValue) { this.txtNiGaoRiQi.Text = entity.DraftDate.ToString(DateFormat); //拟稿人显示非下拉列表框形式 this.txtNiGaoRen.Visible = false; this.lblNiGaoRen.Visible = true; //this.lbNiGaoRen.Text = entity.Drafter + strNewLine + entity.DraftDate.ToString(ConstString.DateFormat.Long); this.lblNiGaoRen.Text = entity.Drafter; } else { this.txtNiGaoRiQi.Text = DateTime.Now.ToString(DateFormat); } //申请单编号 this.txtDocumentNo.Text = entity.DocumentNo; this.txtDanJuZhangShu.Text = entity.DanJuZhangShu == Int32.MinValue ? "" : entity.DanJuZhangShu.ToString(); this.txtYongTu.Text = entity.YongTu; txtBaoXiaoJinE.Text = entity.BaoXiaoJinE; txtBaoXiaoJinEDaXie.Text = entity.BaoXiaoJinEDaXie; this.txtShouKuanDanWei.Text = entity.ShouKuanDanWei; this.txtShouKuanZhangHao.Text = entity.ShouKuanZhangHao; this.txtShouKuanYinHang.Text = entity.ShouKuanYinHang; this.txtShouKuanZhangHao.Text = entity.ShouKuanZhangHao; this.txtYanQingRenShu.Text = entity.YanQingRenShu; this.txtRenJunXiaoFeiE.Text = entity.RenJunXiaoFeiE; ////拟稿人 //this.txtNiGaoRen.Text = entity.Drafter; //this.txtNiGaoRenID.Text = entity.NiGaoRenID; //提示信息 this.txtTiShiXinXi.Text = entity.Message; //提示信息添加 this.txtTianJia.Text = entity.MessageAdd; //this.txtGeneralManagerID.Text = entity.GeneralManagerID; //this.txtChargeLeaderID.Text = entity.ChargeLeaderID; //this.txtDepartmentLeaderID.Text = entity.DepartmentLeaderID; }
/// <summary> /// 实体赋值 /// </summary> /// <param name="IsSave"></param> /// <returns></returns> protected override EntityBase ControlToEntity(bool IsSave) { B_FinanceCCBX entity = base.EntityData != null ? base.EntityData as B_FinanceCCBX : new B_FinanceCCBX(); switch (base.StepName) { #region 拟稿 case ProcessConstString.StepName.STEP_DRAFT: entity.Type = ddlType.SelectedValue; entity.ChuChaDanHao = txtChuChaDanHao.Text; entity.DocumentNo = txtBianHao.Text; //拟稿日期 entity.DraftDate = DateTime.Now; //拟稿人 entity.Drafter = this.txtNiGaoRen.Text; entity.DrafterID = this.txtNiGaoRenID.Text; //标题、主题 entity.DocumentTitle = entity.Drafter + "-" + ddlType.SelectedValue + "报销单"; if (ddlZhiCheng.SelectedItem != null) { entity.ZhiWuZhiCheng = ddlZhiCheng.SelectedItem.Text; } entity.ZhiWuZhiChengID = ddlZhiCheng.SelectedValue; //编制部门 if (this.ddlBianZhiBuMen.Items.Count > 0) { entity.Department = this.ddlBianZhiBuMen.SelectedItem.Text; entity.DepartmentID = this.ddlBianZhiBuMen.SelectedValue; } entity.GeRenJieKuan = ddlJieKuan.SelectedValue; entity.Phone = txtPhone.Text; entity.DanJuZhangShu = SysConvert.ToInt32(txtDanJuZhangShu.Text); entity.ShiYou = txtShiYou.Text; //主管领导 entity.BuMenZhuGuan = this.ddlBuMenZhuGuan.SelectedItem.Text; entity.BuMenZhuGuanID = this.ddlBuMenZhuGuan.SelectedValue; //公司领导 if (this.ddlGSLingDao.SelectedItem != null) { entity.GongSiLingDao = this.ddlGSLingDao.SelectedItem.Text; } entity.GongSiLingDaoID = this.ddlGSLingDao.SelectedValue; //提交后产生报销单编号 报销单的编号为BX+部门代码+年度+四位流水号。 if (IsSave == false && entity.DocumentNo == "") { string year = DateTime.Now.Year.ToString(); string deptNo = OADept.GetDeptByDeptID(entity.DepartmentID).No; if (ddlType.SelectedValue == "出差") { entity.DocumentNo = "CCBX" + "-" + deptNo + "-" + entity.GenerateBianHao(year, "出差报销单"); } else { entity.DocumentNo = "PXBX" + "-" + deptNo + "-" + entity.GenerateBianHao(year, "培训报销单"); } } break; #endregion #region 主管领导审核 case ProcessConstString.StepName.FinanceCCBXStepName.STEP_DEPTVERIFY: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.BuMenZhuGuanRiQi = DateTime.Now.ToString("yyyy-MM-dd"); //公司领导 if (this.ddlGSLingDao.SelectedItem != null) { entity.GongSiLingDao = this.ddlGSLingDao.SelectedItem.Text; entity.GongSiLingDaoID = this.ddlGSLingDao.SelectedValue; } //财务 if (this.ddlCaiWu.SelectedItem != null) { entity.CaiWu = this.ddlCaiWu.SelectedItem.Text; entity.CaiWuID = this.ddlCaiWu.SelectedValue; } //归口部门主管 培训处领导 if (this.ddlPeiXunChu.SelectedItem != null) { entity.PeiXunChuLingDao = this.ddlPeiXunChu.SelectedItem.Text; entity.PeiXunChuLingDaoID = this.ddlPeiXunChu.SelectedValue; } } break; #endregion #region 培训处审核 case ProcessConstString.StepName.FinanceCCBXStepName.STEP_PXCVERIFY: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.PeiXunChuLingDaoRiQi = DateTime.Now.ToString("yyyy-MM-dd"); //公司领导 if (this.ddlGSLingDao.SelectedItem != null) { entity.GongSiLingDao = this.ddlGSLingDao.SelectedItem.Text; entity.GongSiLingDaoID = this.ddlGSLingDao.SelectedValue; } //财务 if (this.ddlCaiWu.SelectedItem != null) { entity.CaiWu = this.ddlCaiWu.SelectedItem.Text; entity.CaiWuID = this.ddlCaiWu.SelectedValue; } } break; #endregion #region 公司领导 case ProcessConstString.StepName.FinanceCCBXStepName.STEP_GSLDVERIFY: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.GongSiLingDaoRiQi = DateTime.Now.ToString("yyyy-MM-dd"); //财务 if (this.ddlCaiWu.SelectedItem != null) { entity.CaiWu = this.ddlCaiWu.SelectedItem.Text; entity.CaiWuID = this.ddlCaiWu.SelectedValue; } } break; #endregion #region 财务 case ProcessConstString.StepName.FinanceCCBXStepName.STEP_CWVERIFY: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.CaiWuRiQi = DateTime.Now.ToString("yyyy-MM-dd"); } break; #endregion } //费用相关 拟稿人和财务都会改 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT || base.StepName == ProcessConstString.StepName.FinanceCCBXStepName.STEP_CWVERIFY) { entity.LiXiangHao = txtLiXiangHao.Text; entity.LiXiangJE = txtLiXiangJE.Text.ToString(); entity.YuSuanNei = ddlYuSuanNei.SelectedValue; #region 费用 entity.ChuXingDetails = ucChuXingMingXi.UCGetCXList(); //其他费用 entity.QiTaFeiYongDetails = new List <M_FinanceCCBX.QiTaFeiYongDetail>(); M_FinanceCCBX.QiTaFeiYongDetail qiTaFeiYongDetail = new M_FinanceCCBX.QiTaFeiYongDetail(); qiTaFeiYongDetail.Name = "住宿费"; qiTaFeiYongDetail.RenTian = SysConvert.ToDecimal(txtZhuSuRT.Text); qiTaFeiYongDetail.JinE = SysConvert.ToDecimal(txtZhuSuJE.Text); entity.QiTaFeiYongDetails.Add(qiTaFeiYongDetail); qiTaFeiYongDetail = new M_FinanceCCBX.QiTaFeiYongDetail(); qiTaFeiYongDetail.Name = "托运费"; qiTaFeiYongDetail.RenTian = SysConvert.ToDecimal(txtTuoYunRT.Text); qiTaFeiYongDetail.JinE = SysConvert.ToDecimal(txtTuoYunJE.Text); entity.QiTaFeiYongDetails.Add(qiTaFeiYongDetail); qiTaFeiYongDetail = new M_FinanceCCBX.QiTaFeiYongDetail(); qiTaFeiYongDetail.Name = "其他"; qiTaFeiYongDetail.RenTian = SysConvert.ToDecimal(txtQiTaRT.Text); qiTaFeiYongDetail.JinE = SysConvert.ToDecimal(txtQiTaJE.Text); entity.QiTaFeiYongDetails.Add(qiTaFeiYongDetail); //其他费用小计 Decimal qiTaXiaoJi = 0; foreach (var item in entity.QiTaFeiYongDetails) { qiTaXiaoJi += item.JinE; } entity.QiTaFeiYongXiaoJi = qiTaXiaoJi; //出差补贴 entity.BuTieDetails = new List <M_FinanceCCBX.BuTieDetail>(); M_FinanceCCBX.BuTieDetail buTieDetail = new M_FinanceCCBX.BuTieDetail(); buTieDetail.Name = "住勤补贴"; buTieDetail.RenTian = SysConvert.ToDecimal(txtZhuQinRT.Text); buTieDetail.JinE = SysConvert.ToDecimal(txtZhuQinJE.Text); entity.BuTieDetails.Add(buTieDetail); buTieDetail = new M_FinanceCCBX.BuTieDetail(); buTieDetail.Name = "住宿节约补贴"; buTieDetail.RenTian = SysConvert.ToDecimal(txtZhuSuJYRT.Text); buTieDetail.JinE = SysConvert.ToDecimal(txtZhuSuJYJE.Text); entity.BuTieDetails.Add(buTieDetail); buTieDetail = new M_FinanceCCBX.BuTieDetail(); buTieDetail.Name = "未乘坐卧铺补贴"; buTieDetail.RenTian = SysConvert.ToDecimal(txtWeiWoPuRT.Text); buTieDetail.JinE = SysConvert.ToDecimal(txtWeiWoPuBuJE.Text); entity.BuTieDetails.Add(buTieDetail); buTieDetail = new M_FinanceCCBX.BuTieDetail(); buTieDetail.Name = "在途补贴"; buTieDetail.RenTian = SysConvert.ToDecimal(txtZaiTuRT.Text); buTieDetail.JinE = SysConvert.ToDecimal(txtZaiTuJE.Text); entity.BuTieDetails.Add(buTieDetail); //出差补贴小计 Decimal chuChaXiaoJi = 0; foreach (var item in entity.BuTieDetails) { chuChaXiaoJi += item.JinE; } entity.BuTieXiaoJi = chuChaXiaoJi; //合计 entity.HeJi = SysConvert.ToDecimal(txtHeJi.Text); entity.CaiWuShenHeJinE = txtCaiWuJE.Text; entity.ZhuQinToolTip = txtZhuQinJE.ToolTip; entity.ZhuSuToolTip = txtZhuSuJE.ToolTip; entity.ZiXingToolTip = txtZiXingJinE.ToolTip; #endregion entity.ChangQiBuTie = txtChangQiBuTie.Text; entity.ZiXingTianShu = SysConvert.ToInt32(txtZiXingTianShu1.Text); entity.ZiXingJinE = SysConvert.ToDecimal(txtZiXingJinE.Text); } #region 提示信息、意见 if (!IsSave) { if (!string.IsNullOrEmpty(this.txtTianJia.Text)) { entity.MessageAdd = string.Empty; entity.Message = this.txtTiShiXinXi.Text + (string.IsNullOrEmpty(entity.ReceiveUserName) ? CurrentUserInfo.DisplayName : entity.ReceiveUserName) + "[" + DateTime.Now.ToString(ConstString.DateFormat.Long) + "]:(" + base.StepName + ")" + SysString.InputText(this.txtTianJia.Text) + "\n"; } } else { entity.Message = this.txtTiShiXinXi.Text; entity.MessageAdd = this.txtTianJia.Text; } #endregion return(entity); }
/// <summary> /// 实体加载 /// </summary> protected override void EntityToControl() { B_FinanceHWBX entity = base.EntityData != null ? base.EntityData as B_FinanceHWBX : new B_FinanceHWBX(); //拟稿 if (base.StepName == ProcessConstString.StepName.STEP_DRAFT && !base.IsPreview) { //编制部门 OADept.GetDeptByUser(this.ddlBianZhiBuMen, CurrentUserInfo.UserName, 1, true, false); //部门负责人 if (this.ddlBianZhiBuMen.Items.Count > 0) { ddlBianZhiBuMen_SelectedIndexChanged(null, null); } //拟稿日期 txtNiGaoRiQi.Text = DateTime.Now.ToString("yyyy-MM-dd"); //拟稿人 this.txtNiGaoRen.Text = CurrentUserInfo.DisplayName; this.txtNiGaoRenID.Text = CurrentUserInfo.UserName; } else { FormsMethod.SetDropDownList(this.ddlBianZhiBuMen, entity.DepartmentID, entity.Department); FormsMethod.SetDropDownList(this.ddlYanShouRen, entity.YanShouRenID, entity.YanShouRen); FormsMethod.SetDropDownList(this.ddlShenQianRen, entity.ShenQianRenID, entity.ShenQianRen); FormsMethod.SetDropDownList(this.ddlShenHe, entity.ShenHeRenID, entity.ShenHeRen); FormsMethod.SetDropDownList(this.ddlShenPi, entity.ShenPiRenID, entity.ShenPiRen); this.txtNiGaoRen.Text = entity.Drafter; this.txtNiGaoRenID.Text = entity.DrafterID; } //验收 if (base.StepName == ProcessConstString.StepName.FinanceHWBXStepName.STEP_YANSHOU) { OAUser.GetUserByRole(this.ddlShenQianRen, "立项审签"); } //立项审签 if (base.StepName == ProcessConstString.StepName.FinanceHWBXStepName.STEP_LIXIANGSHENQIAN) { if (this.ddlBianZhiBuMen.Items.Count > 0) { OAUser.GetUserByDeptPost(this.ddlShenHe, this.ddlBianZhiBuMen.SelectedValue, OUConstString.PostName.FUCHUZHANG, true, true); } } //审核 if (base.StepName == ProcessConstString.StepName.FinanceHWBXStepName.STEP_SHENHE) { OAUser.GetUserByRole(this.ddlShenPi, OUConstString.RoleName.COMPANY_LEADER); OAUser.GetUserByRole(this.ddlCaiWu, OUConstString.RoleName.CaiWu); } //审批 if (base.StepName == ProcessConstString.StepName.FinanceHWBXStepName.STEP_SHENPI) { OAUser.GetUserByRole(this.ddlCaiWu, OUConstString.RoleName.CaiWu); } //财务 if (base.StepName == ProcessConstString.StepName.FinanceHWBXStepName.STEP_CAIWUSHENHE) { } //反馈报销人 if (base.StepName == ProcessConstString.StepName.FinanceHWBXStepName.STEP_FANKUI) { } if (txtNiGaoRen.Text == "") { txtNiGaoRen.Text = entity.Drafter; } if (txtNiGaoRiQi.Text == "") { txtNiGaoRiQi.Text = entity.DraftDate.ToString("yyyy-MM-dd"); } txtDocumentNo.Text = entity.DocumentNo; FormsMethod.SelectedDropDownList(this.ddlBianZhiBuMen, entity.DepartmentID, entity.Department); if (entity.DanJuZhangShu == Int32.MinValue) { txtDanJuZhangShu.Text = ""; } else { txtDanJuZhangShu.Text = entity.DanJuZhangShu.ToString(); } txtYongTu.Text = entity.YongTu; txtShouKuanYinHang.Text = entity.ShouKuanYinHang; txtShouKuanDanWei.Text = entity.ShouKuanDanWei; txtShouKuanZhangHao.Text = entity.ShouKuanZhangHao; txtBaoXiaoJinE.Text = entity.BaoXiaoJinE; txtBaoXiaoJinEDaXie.Text = entity.BaoXiaoJinEDaXie; txtLiXiangHao.Text = entity.LiXiangHao; txtLiXiangJinE.Text = entity.LiXiangJinE.ToString(); txtLiXiangLeiJiJinE.Text = entity.LiXiangLeiJiJinE.ToString(); FormsMethod.SelectedDropDownList(this.ddlYanShouRen, entity.YanShouRenID, entity.YanShouRen); FormsMethod.SelectedDropDownList(this.ddlShenQianRen, entity.ShenQianRenID, entity.ShenQianRen); FormsMethod.SelectedDropDownList(this.ddlShenHe, entity.ShenHeRenID, entity.ShenHeRen); FormsMethod.SelectedDropDownList(this.ddlShenPi, entity.ShenPiRenID, entity.ShenPiRen); FormsMethod.SelectedDropDownList(this.ddlCaiWu, entity.CaiWuID, entity.CaiWu); //提示信息 this.txtTiShiXinXi.Text = entity.Message; this.txtTianJia.Text = entity.MessageAdd; }
/// <summary> /// 确定 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnOK_Click(object sender, EventArgs e) { #region 获得部门ID和Name String deptID = String.Empty; String deptName = String.Empty; ArrayList arrCheckedDeptID = new ArrayList(); foreach (TreeNode node in this.tvDeptList.CheckedNodes) { arrCheckedDeptID.Add(node.Value); } if (arrCheckedDeptID.Count > 0) { foreach (object o in arrCheckedDeptID) { if (o.ToString() != String.Empty) { deptID += ";" + o.ToString(); deptName += ";" + OADept.GetDeptName(o.ToString()); } } if (deptID.Length > 0) { deptID = deptID.Substring(1); } if (deptName.Length > 0) { deptName = deptName.Substring(1); } } #endregion #region 获得部门成员ID和Name String deptUserID = String.Empty; String deptUserName = String.Empty; ArrayList arrDeptUserName = new ArrayList(); ArrayList arrDeptUserID = new ArrayList(); foreach (ListItem item in lbxRight.Items) { arrDeptUserID.Add(item.Value); arrDeptUserName.Add(OAUser.GetUserName(item.Value)); } //帐号 deptUserID = base.GetStringText(arrDeptUserID).Replace(@"\", @"\\"); //姓名 deptUserName = base.GetStringText(arrDeptUserName); #endregion #region 获得角色成员ID和Name String roleUserID = String.Empty; String roleUserName = String.Empty; ArrayList arrRoleUserName = new ArrayList(); ArrayList arrRoleUserID = new ArrayList(); foreach (ListItem item in chkRole.Items) { if (item.Selected) { arrRoleUserID.Add(item.Value); arrRoleUserName.Add(item.Text); } } //帐号 roleUserID = base.GetStringText(arrRoleUserID).Replace(@"\", @"\\"); //姓名 roleUserName = base.GetStringText(arrRoleUserName); #endregion #region 获得部门树上成员ID和Name String deptTreeUserID = String.Empty; String deptTreeUserName = String.Empty;//用户名字 String[] strUsers = new String[2]; GetType1(); if (UCDeptTreeUserIDControl != String.Empty || UCDeptTreeUserNameControl != String.Empty) { if (this.type1 == "1" || this.type2 == "1" || this.type3 == "1") { foreach (String deptid in arrCheckedDeptID) { strUsers = this.GetDeptMember(deptid); if (strUsers[0] != null && strUsers[1] != null) { deptTreeUserID += ";" + strUsers[0]; deptTreeUserName += ";" + strUsers[1]; } } if (deptTreeUserName.Length > 0) { deptTreeUserName = FormsMethod.FilterRepeat(deptTreeUserName.Substring(1)); } if (deptTreeUserID.Length > 0) { deptTreeUserID = FormsMethod.FilterRepeat(deptTreeUserID.Substring(1)).Replace(@"\", @"\\"); } } } #endregion #region 获得角色组的名称 string strGroupName = string.Empty; foreach (TreeNode node in this.tvRoleList.CheckedNodes) { strGroupName += ";" + node.Text; } if (strGroupName.Length > 0) { strGroupName = strGroupName.Substring(1); } #endregion #region 获得回传脚本 String script = String.Empty; if (UCDeptIDControl != String.Empty) { script += base.GetJSscriptValue(UCDeptIDControl, deptID); } if (UCDeptNameControl != String.Empty) { script += base.GetJSscriptValue(UCDeptNameControl, deptName); script += base.GetJSscriptTitle(UCDeptNameControl, deptID); } if (UCDeptUserIDControl != String.Empty) { script += base.GetJSscriptValue(UCDeptUserIDControl, deptUserID); } if (UCDeptUserNameControl != String.Empty) { script += base.GetJSscriptValue(UCDeptUserNameControl, deptUserName); script += base.GetJSscriptTitle(UCDeptUserNameControl, deptUserID); } if (UCRoleUserIDControl != String.Empty) { script += base.GetJSscriptValue(UCRoleUserIDControl, roleUserID); } if (UCRoleUserNameControl != String.Empty) { script += base.GetJSscriptValue(UCRoleUserNameControl, roleUserName); script += base.GetJSscriptTitle(UCRoleUserNameControl, roleUserID); } if (UCDeptTreeUserIDControl != String.Empty) { script += base.GetJSscriptValue(UCDeptTreeUserIDControl, deptTreeUserID); } if (UCDeptTreeUserNameControl != String.Empty) { script += base.GetJSscriptValue(UCDeptTreeUserNameControl, deptTreeUserName); script += base.GetJSscriptTitle(UCDeptTreeUserNameControl, deptTreeUserID); } //如果是部门和人员选到一个文本框上 if (this.UCDeptAndUserControl != String.Empty) { String strDeptAndUser = String.Empty; if (deptName != String.Empty) { strDeptAndUser += deptName; } if (deptUserName != String.Empty) { if (strDeptAndUser != String.Empty) { strDeptAndUser += ";"; } strDeptAndUser += deptUserName; } if (strGroupName != string.Empty) { if (strDeptAndUser != string.Empty) { strDeptAndUser += ";"; } strDeptAndUser += strGroupName; } script += base.GetJSscriptValue(UCDeptAndUserControl, strDeptAndUser); } script += String.Format("parent.ClosePopDiv('{0}')", base.divPopDivID + base.UCID); #endregion //组成一整条js后运行 ClientScriptM.ResponseScript(this, script); }
/// <summary> /// 实体赋值 /// </summary> /// <param name="IsSave"></param> /// <returns></returns> protected override EntityBase ControlToEntity(bool IsSave) { B_FinanceHWBX entity = base.EntityData != null ? base.EntityData as B_FinanceHWBX : new B_FinanceHWBX(); switch (base.StepName) { #region 拟稿 case ProcessConstString.StepName.STEP_DRAFT: entity.DocumentNo = txtDocumentNo.Text; //拟稿日期 entity.DraftDate = DateTime.Now; //拟稿人 entity.Drafter = this.txtNiGaoRen.Text; entity.DrafterID = this.txtNiGaoRenID.Text; //标题、主题 entity.DocumentTitle = entity.Drafter + "-" + "会务报销单"; //编制部门 if (this.ddlBianZhiBuMen.Items.Count > 0) { entity.Department = this.ddlBianZhiBuMen.SelectedItem.Text; entity.DepartmentID = this.ddlBianZhiBuMen.SelectedValue; } //验收 entity.YanShouRen = this.ddlYanShouRen.SelectedItem.Text; entity.YanShouRenID = this.ddlYanShouRen.SelectedValue; //提交后产生报销单编号 报销单的编号为BX+部门代码+年度+四位流水号。 if (IsSave == false && entity.DocumentNo == "") { string year = DateTime.Now.Year.ToString(); string deptNo = OADept.GetDeptByDeptID(entity.DepartmentID).No; entity.DocumentNo = "HWBX" + "-" + deptNo + "-" + entity.GenerateBianHao(year, "会务报销单"); } break; #endregion #region 验收 case ProcessConstString.StepName.FinanceHWBXStepName.STEP_YANSHOU: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.YanShouRiQi = DateTime.Now.ToString("yyyy-MM-dd"); entity.ShenQianRen = this.ddlShenQianRen.SelectedItem.Text; entity.ShenQianRenID = this.ddlShenQianRen.SelectedValue; } break; #endregion #region 立项审签 case ProcessConstString.StepName.FinanceHWBXStepName.STEP_LIXIANGSHENQIAN: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.ShenQianRiQi = DateTime.Now.ToString("yyyy-MM-dd"); entity.ShenHeRen = this.ddlShenHe.SelectedItem.Text; entity.ShenHeRenID = this.ddlShenHe.SelectedValue; } break; #endregion #region 审核 case ProcessConstString.StepName.FinanceHWBXStepName.STEP_SHENHE: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.ShenHeRiQi = DateTime.Now.ToString("yyyy-MM-dd"); entity.ShenPiRen = this.ddlShenPi.SelectedItem.Text; entity.ShenPiRenID = this.ddlShenPi.SelectedValue; entity.CaiWu = this.ddlCaiWu.SelectedItem.Text; entity.CaiWuID = this.ddlCaiWu.SelectedValue; } break; #endregion #region 审批 case ProcessConstString.StepName.FinanceHWBXStepName.STEP_SHENPI: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.ShenPiRiQi = DateTime.Now.ToString("yyyy-MM-dd"); entity.CaiWu = this.ddlCaiWu.SelectedItem.Text; entity.CaiWuID = this.ddlCaiWu.SelectedValue; } break; #endregion #region 财务 case ProcessConstString.StepName.FinanceHWBXStepName.STEP_CAIWUSHENHE: if (base.SubAction == ProcessConstString.SubmitAction.ACTION_DENY) { entity.IsBack = true; } else { entity.IsBack = false; entity.CaiWuRiQi = DateTime.Now.ToString("yyyy-MM-dd"); } break; #endregion } entity.LiXiangHao = txtLiXiangHao.Text; entity.LiXiangJinE = txtLiXiangJinE.Text; entity.LiXiangLeiJiJinE = txtLiXiangLeiJiJinE.Text; entity.ShouKuanYinHang = txtShouKuanYinHang.Text; entity.ShouKuanDanWei = txtShouKuanDanWei.Text; entity.ShouKuanZhangHao = txtShouKuanZhangHao.Text; entity.BaoXiaoJinE = txtBaoXiaoJinE.Text; entity.BaoXiaoJinEDaXie = txtBaoXiaoJinEDaXie.Text; entity.DanJuZhangShu = SysConvert.ToInt32(txtDanJuZhangShu.Text); entity.YongTu = txtYongTu.Text; #region 提示信息、意见 if (!IsSave) { if (!string.IsNullOrEmpty(this.txtTianJia.Text)) { entity.MessageAdd = string.Empty; entity.Message = this.txtTiShiXinXi.Text + (string.IsNullOrEmpty(entity.ReceiveUserName) ? CurrentUserInfo.DisplayName : entity.ReceiveUserName) + "[" + DateTime.Now.ToString(ConstString.DateFormat.Long) + "]:(" + base.StepName + ")" + SysString.InputText(this.txtTianJia.Text) + "\n"; } } else { entity.Message = this.txtTiShiXinXi.Text; entity.MessageAdd = this.txtTianJia.Text; } #endregion return(entity); }
/// <summary> /// 实体填充控件 /// </summary> protected override void EntityToControl() { B_MergeReceiveBase l_objReceiveBase = null; //收文登记号 this.RegisterID = Request.QueryString[ConstString.QueryString.REGISTER_ID]; if (!String.IsNullOrEmpty(this.RegisterID)) { B_ReceiveEdit l_BusReceiveEdit = new B_ReceiveEdit(); l_BusReceiveEdit.ID = Convert.ToInt32(this.RegisterID); if (l_BusReceiveEdit == null) { JScript.ShowMsgBox(this.Page, MsgType.VbCritical, "当前选择的收文登记信息不存在或者已经被删除,无法继续操作", "Container.aspx?ClassName=FS.ADIM.OA.WebUI.WorkflowMenu.ToDoTask.PG_WaitHandle"); return; } //附件列表 this.ucAttachment.UCDataList = XmlUtility.DeSerializeXml <List <CFuJian> >(l_BusReceiveEdit.FileData); //收文号 this.txtReceiveNo.Text = l_BusReceiveEdit.ReceiveNo; //收文日期 this.txtReceiveDate.Text = l_BusReceiveEdit.ReceiveDate.ToString(ConstString.DateFormat.Normal); //原文号 this.txtSendLetterNo.Text = l_BusReceiveEdit.SendLetterNo; //来文单位 this.txtCommunicationUnit.Text = l_BusReceiveEdit.ReceiveUnit; //卷号 this.txtPreVolumeNo.Text = l_BusReceiveEdit.PreVolumeNo; //文件名称 this.txtDocumentTitle.Text = l_BusReceiveEdit.DocumentTitle; //紧急程度 this.txtUrgentDegree.Text = l_BusReceiveEdit.UrgentDegree; //步骤名称 base.StepName = ProcessConstString.StepName.ReceiveStepName.STEP_INITIAL; this.SubTemplateName = l_BusReceiveEdit.ProcessName; //党群工作处处长 OAUser.GetUserByRole(this.ddlPoliticalOfficer, OUConstString.RoleName.PARTYS_DIRECTOR); } else { l_objReceiveBase = base.EntityData as B_MergeReceiveBase; this.SubTemplateName = l_objReceiveBase.TemplateName; this.RegisterID = l_objReceiveBase.RegisterID; //党群工作处处长 OAUser.GetUserByRole(this.ddlPoliticalOfficer, OUConstString.RoleName.PARTYS_DIRECTOR); ddlPoliticalOfficer.SelectedValue = l_objReceiveBase.Officer; txtPoliticalOfficerComment.Text = l_objReceiveBase.Officer_Comment; //附件列表 this.ucAttachment.UCDataList = l_objReceiveBase.FileList; //收文号 this.txtReceiveNo.Text = l_objReceiveBase.DocumentNo; //收文日期 this.txtReceiveDate.Text = l_objReceiveBase.DocumentReceiveDate.ToString(ConstString.DateFormat.Normal); //原文号 this.txtSendLetterNo.Text = l_objReceiveBase.SendNo; //来文单位 this.txtCommunicationUnit.Text = l_objReceiveBase.CommunicationUnit; //卷号 this.txtPreVolumeNo.Text = l_objReceiveBase.VolumeNo; //文件名称 this.txtDocumentTitle.Text = l_objReceiveBase.DocumentTitle; //紧急程度 this.txtUrgentDegree.Text = l_objReceiveBase.UrgentDegree; //发起人ID this.txtDrafter.Text = l_objReceiveBase.DrafterID; //发起日期 this.txtDraftDate.Text = l_objReceiveBase.DraftDate.ToString(); //公司领导 this.ddlLeadShip.SelectedValue = l_objReceiveBase.LeaderShip; //公司批示意见 this.txtLeadCommentView.Text = l_objReceiveBase.LS_Comment; if (base.StepName == ProcessConstString.StepName.ReceiveStepName.STEP_INSTRUCTION) { this.txtLeadCommentEdit.Text = l_objReceiveBase.LS_Comment; } switch (base.StepName) { case ProcessConstString.StepName.ReceiveStepName.STEP_SECTION_DIRECTOR: //获取处室下属科室 OADept.GetChildDept(this.ddlUnderTakeSection, l_objReceiveBase.UnderTakeDept, 2); //获取处室下属人员 OAUser.GetUserByDeptID(this.ddlUnderTakePeople, l_objReceiveBase.UnderTakeDept, -1); break; case ProcessConstString.StepName.ReceiveStepName.STEP_SECTION_CHIEF: //获取科室下属人员 OAUser.GetUserByDeptID(this.ddlUnderTakePeople, l_objReceiveBase.UnderTakeChief, -1); break; case ProcessConstString.StepName.ReceiveStepName.STEP_SECTION_MEMBER: break; } //承办部门 this.txtUnderTakeDeptID.Text = l_objReceiveBase.UnderTakeDept; this.txtUnderTakeDeptName.Text = l_objReceiveBase.UnderTakeDeptName; //承办科室 this.ddlUnderTakeSection.SelectedValue = l_objReceiveBase.UnderTakeChief; //承办人员 this.ddlUnderTakePeople.SelectedValue = l_objReceiveBase.UnderTakePeople; //承办意见 this.txtUnderTakeCommentEdit.Text = l_objReceiveBase.UnderTake_Comment; this.txtCirculatePeopleName.Text = l_objReceiveBase.CPeopleName; this.txtCirculatePeopleID.Text = l_objReceiveBase.CPeopleID; this.txtCirculateDeptName.Text = l_objReceiveBase.CDeptName; this.txtCirculateDeptID.Text = l_objReceiveBase.CDeptID; //党群工作处处长处理后显示label形式的处长姓名与时间 if (l_objReceiveBase.DraftDate == DateTime.MinValue) { this.ddlPoliticalOfficer.Visible = false; this.lbParty.Visible = true; this.lbParty.Text = l_objReceiveBase.Officer + strNewLine + l_objReceiveBase.Officer_Date; } //领导;批示处理后显示label形式的领导人姓名与时间 if (l_objReceiveBase.LS_Date != "" && l_objReceiveBase.LS_Date != null) { this.ddlLeadShip.Visible = false; this.lbLeadShip.Visible = true; this.lbLeadShip.Text = l_objReceiveBase.LeaderShipName + strNewLine + l_objReceiveBase.LS_Date; } //提示信息 this.txtPrompt.Text = l_objReceiveBase.Prompt; if (l_objReceiveBase.IsFormSave) { this.txtPromptEdit.Text = l_objReceiveBase.PromptEdit; } } }