public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_HIREAPP>(hireApp, "OA"); Utility.SetAuditEntity(entity, "houseHireApp", hireApp.HIREAPPID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_ORGANIZATION>(organ, "OA"); Utility.SetAuditEntity(entity, "Organization", organ.ORGANIZATIONID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_MEETINGROOMAPP>(tmpRoomTimeT, "OA"); Utility.SetAuditEntity(entity, "MeetingRoomApp", tmpRoomTimeT.MEETINGROOMAPPID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_HOUSEINFOISSUANCE>(IssuanceObj, "OA"); Utility.SetAuditEntity(entity, "housingIssuance", IssuanceObj.ISSUANCEID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_SENDDOC>(tmpSendDocT, "OA"); Utility.SetAuditEntity(entity, "T_OA_SENDDOC", tmpSendDocT.SENDDOCID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_LICENSEUSER>(licenseObj, "OA"); Utility.SetAuditEntity(entity, "licenseBorrow", licenseObj.LICENSEUSERID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_MEETINGINFO>(tmpMeetingInfoT, "OA"); Utility.SetAuditEntity(entity, "MeetingInfo", tmpMeetingInfoT.MEETINGINFOID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { string strXmlObjectSource = string.Empty; strXmlObjectSource = Utility.ObjListToXml <T_OA_LENDARCHIVES>(lendingArchives, "OA"); Utility.SetAuditEntity(entity, "archivesLending", lendingArchives.LENDARCHIVESID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { Dictionary <string, string> para = new Dictionary <string, string>(); entity.SystemCode = "HR"; string strXmlObjectSource = string.Empty; //strXmlObjectSource = Utility.ObjListToXml<T_HR_EMPLOYEESIGNINRECORD>(SignInRecord, para, "HR"); if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML)) { strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML, SignInRecord); } Utility.SetAuditEntity(entity, "T_HR_EMPLOYEESIGNINRECORD", SignInID, strXmlObjectSource); }
/// <summary> /// 代提单时设置流程实体 /// </summary> /// <param name="entity"></param> /// <param name="modelcode"></param> /// <param name="formid"></param> /// <param name="strXmlObjectSource"></param> /// <param name="paras">被代提单的员工岗位,部门,公司ID集合</param> public static void SetAuditEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity, string modelcode, string formid, string strXmlObjectSource, Dictionary <string, string> paras) { entity.ModelCode = modelcode; //"archivesLending";T_HR_COMPANY entity.FormID = formid; //"0b6c8e80-69fa-4f54-810a-1f0d339c6603";//Company.COMPANYID; entity.CreateCompanyID = paras["CreateCompanyID"]; entity.CreateDepartmentID = paras["CreateDepartmentID"]; entity.CreatePostID = paras["CreatePostID"]; entity.CreateUserID = paras["CreateUserID"]; entity.CreateUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; entity.XmlObject = strXmlObjectSource; }
private void InitAudit(T_OA_MEETINGINFO MeetingInfo) { SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; entity.ModelCode = "MeetingInfo"; entity.FormID = MeetingInfo.MEETINGINFOID; entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; audit.BindingData(); }
public static void SetAuditEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity, string modelcode, string formid, string strXmlObjectSource) { entity.ModelCode = modelcode; //"archivesLending";T_HR_COMPANY entity.FormID = formid; //"0b6c8e80-69fa-4f54-810a-1f0d339c6603";//Company.COMPANYID; entity.CreateCompanyID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; // "7cd6c0a4-9735-476a-9184-103b962d3383"; entity.CreateDepartmentID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; entity.CreatePostID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; entity.CreateUserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; entity.CreateUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; entity.XmlObject = strXmlObjectSource; }
private void InitAudit(string entityID) { SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.viewApproval.AuditEntity; entity.ModelCode = "T_OA_VEHICLEUSEAPP"; entity.FormID = entityID; entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; viewApproval.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing); viewApproval.BindingData(); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { Dictionary <string, string> para = new Dictionary <string, string>(); para.Add("POSTLEVEL", tbEmpLevel.Text.Trim()); para.Add("OWNERPOSTNAME", tbOrgName.Text.Trim()); entity.SystemCode = "HR"; string strXmlObjectSource = string.Empty; if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML)) { strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML, cancelLeave); } //strXmlObjectSource = Utility.ObjListToXml<T_HR_EMPLOYEECANCELLEAVE>(cancelLeave, para, "HR"); Utility.SetAuditEntity(entity, "T_HR_EMPLOYEECANCELLEAVE", CancelLeaveID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T FlowEntity) { Dictionary <string, string> para = new Dictionary <string, string>(); para.Add("POSTLEVEL", Common.CurrentLoginUserInfo.UserPosts[0].PostLevel.ToString()); para.Add("OWNERPOSTNAME", Common.CurrentLoginUserInfo.UserPosts[0].PostName.ToString()); FlowEntity.SystemCode = "HR"; string strXmlObjectSource = string.Empty; // strXmlObjectSource = Utility.ObjListToXml<T_HR_NOATTENDCARDEMPLOYEES>(OvertimeRecord, para, "HR"); if (!string.IsNullOrEmpty(FlowEntity.BusinessObjectDefineXML)) { strXmlObjectSource = this.GetXmlString(FlowEntity.BusinessObjectDefineXML, entity); } Utility.SetAuditEntity(FlowEntity, "T_HR_NOATTENDCARDEMPLOYEES", entity.NOATTENDCARDEMPLOYEESID, strXmlObjectSource); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { Dictionary <string, string> para = new Dictionary <string, string>(); para.Add("POSTLEVEL", tbEmpLevel.Text.Trim()); para.Add("OWNERPOSTNAME", tbOrgName.Text.Trim()); entity.SystemCode = "HR"; string strXmlObjectSource = string.Empty; // strXmlObjectSource = Utility.ObjListToXml<T_HR_OUTAPPLYRECORD>(OvertimeRecord, para, "HR"); if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML)) { strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML, OvertimeRecord); } Utility.SetAuditEntity(entity, "T_HR_OUTAPPLYRECORD", OvertimeRecord.OUTAPPLYID, strXmlObjectSource); }
private void OKButton_Click(object sender, RoutedEventArgs e) { //this.DialogResult = true; SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; entity.ModelCode = "archivesLending"; entity.FormID = "0b6c8e80-69fa-4f54-810a-1f0d339c6603";//lendingArchives.LENDARCHIVESID; entity.CreateCompanyID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; entity.CreateDepartmentID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; entity.CreatePostID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; entity.CreateUserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; entity.CreateUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; audit.BindingData(); }
/// <summary> /// 提交流程 /// </summary> private void SumbitFlow() { if (vehicleUsrApp != null) { SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.viewApproval.AuditEntity; entity.ModelCode = "T_OA_VEHICLEUSEAPP"; entity.FormID = vehicleUsrApp.VEHICLEUSEAPPID; entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; viewApproval.Submit(); } }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { entity.SystemCode = "HR"; string strXmlObjectSource = string.Empty; Dictionary <string, string> paras = new Dictionary <string, string>(); paras["CreateCompanyID"] = AttendMonthlyBatchBalance.OWNERCOMPANYID; paras["CreateDepartmentID"] = AttendMonthlyBatchBalance.OWNERDEPARTMENTID; paras["CreatePostID"] = AttendMonthlyBatchBalance.OWNERPOSTID; paras["CreateUserID"] = AttendMonthlyBatchBalance.OWNERID; if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML)) { strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML, AttendMonthlyBatchBalance); } Utility.SetAuditEntity(entity, "T_HR_ATTENDMONTHLYBATCHBALANCE", AttendMonthlyBatchBalance.MONTHLYBATCHID, strXmlObjectSource, paras); }
private void SumbitFlow() { if (tmpMeetingInfo != null) { SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; entity.ModelCode = "MeetingInfo"; //会议申请模块 entity.FormID = tmpMeetingInfo.MEETINGINFOID; entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; entity.Content = "aaaaa"; //audit.AuditEntity = entity; audit.Submit(); } }
/// <summary> /// 绑定审核控件数据 /// </summary> public void BindAduitInfo() { SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; entity.ModelCode = "archivesLending"; //entity.FormID = lendingArchives.LENDARCHIVESID; //entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; //entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; //entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; //entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; //entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; //entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; //entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; entity.FormID = lendingArchives.LENDARCHIVESID; entity.CreateCompanyID = lendingArchives.OWNERCOMPANYID; entity.CreateDepartmentID = lendingArchives.OWNERDEPARTMENTID; entity.CreatePostID = lendingArchives.OWNERPOSTID; entity.CreateUserID = lendingArchives.OWNERID; entity.CreateUserName = lendingArchives.OWNERNAME; entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; audit.BindingData(); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { Utility.SetAuditEntity(entity, "T_HR_ATTENDMONTHLYBALANCE", MonthlyBalanceId); }