void personelClient_GetEmployeeDetailByIDCompleted(object sender, SMT.Saas.Tools.PersonnelWS.GetEmployeeDetailByIDCompletedEventArgs e) { if (e.Result != null) { // SMT.SAAS.Main.CurrentContext.Common.CurrentConfig.CurrentUser.EmployeeInfo = e.Result; } }
public LooKUP(SMT.SaaS.FrameworkUI.OrgTreeItemTypes orgTreeItemType,string title) { InitializeComponent(); this.Title = title; //object objs = null; //if (Application.Current.Resources["CurrentUserID"] != null) //{ // objs = Application.Current.Resources["CurrentUserID"]; // Application.Current.Resources.Remove("CurrentUserID"); // Application.Current.Resources.Add("CurrentUserID", ""); //} //if (Application.Current.Resources["CurrentUserID"] == null) //{ // Application.Current.Resources.Add("CurrentUserID", ""); //} SMT.SaaS.FrameworkUI.OrganizationControl.OrganizationLookup lookup = new SMT.SaaS.FrameworkUI.OrganizationControl.OrganizationLookup(); lookup.SelectedObjType = orgTreeItemType; lookup.SelectedClick += (obj, ev) => { List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj> ent = lookup.SelectedObj as List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>; if (ent != null && ent.Count > 0) { SelectList = ent; } }; (lookup.FindName("OKButton") as Button).Click += new RoutedEventHandler(LooKUP_Click); (lookup.FindName("CancelButton") as Button).Click += new RoutedEventHandler(CancelButton_Click); lookup.MultiSelected = false; LayoutRoot.Children.Add(lookup); }
public void LoadData(SMT.SaaS.FrameworkUI.FormTypes type, string resumeID) { formType = type; if (formType == FormTypes.Browse) { this.IsEnabled = false; } if (formType == SMT.SaaS.FrameworkUI.FormTypes.New) { if (Resume == null) { Resume = new T_HR_RESUME(); Resume.RESUMEID = Guid.NewGuid().ToString(); Resume.CREATEDATE = DateTime.Now; Resume.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; } } else { if (Resume == null) { client.GetResumeByidAsync(resumeID); } } }
void orgClient_GetCompanyActivedCompleted(object sender, SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //loadbar.Stop();//有错误停止转圈 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } else { if (e.Result == null) { return; } ObservableCollection<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY> entTemps = e.Result; allCompanys = new List<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY>(); allCompanys.Clear(); var ents = entTemps.OrderBy(c => c.FATHERID); ents.ForEach(item => { allCompanys.Add(item); }); UICache.CreateCache("SYS_CompanyInfo", allCompanys); orgClient.GetDepartmentActivedAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); } }
void orgClient_GetCompanyActivedCompleted(object sender, SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } else { if (e.Result == null) { return; } ObservableCollection<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY> entTemps = e.Result; allCompanys = new List<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY>(); allCompanys.Clear(); var ents = entTemps.OrderBy(c => c.FATHERID); ents.ForEach(item => { allCompanys.Add(item); }); UICache.CreateCache("ORGTREESYSCompanyInfo", allCompanys); UICache.CreateCache("SYS_CompanyInfo", allCompanys); orgClient.GetDepartmentActivedAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); } }
public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.UpdateEmployeeInfo(employeeInfo); return StrReturn; } }
public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.UpdateEmployeeInfo(employeeInfo); return StrReturn; } }
//WCF删除 void _client_DeleteFileCompleted(object sender, SMT.Saas.Tools.NewFileUploadWS.DeleteFileCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { string txt = e.Result; } } }
public void OnClickApplyCameraId() { _cameraStartButtonText.text = "Running"; SMT.destroy(); SMT.init(_selectedVideoDeviceName.text); SMT.setCaptureShown(_isCaptureShown); SMT.setUseARMarker(_useARMarker); SMT.setUseFaceTracking(_useFaceTracking); SMT.setUseEyeTracking(_useEyeTracking); }
public static void Run() { while (true) { try { //BTC.Do(); BCH.Do(); ETH.Do(); ETC.Do(); LTC.Do(); EOS.Do(); XRP.Do(); OMG.Do(); DASH.Do(); ZEC.Do(); Thread.Sleep(1000 * 5); // 创新 ITC.Do(); NAS.Do(); RUFF.Do(); ZIL.Do(); DTA.Do(); Thread.Sleep(1000 * 5); LET.Do(); HT.Do(); THETA.Do(); HSR.Do(); QTUM.Do(); Thread.Sleep(1000 * 5); SNT.Do(); IOST.Do(); NEO.Do(); STORJ.Do(); GNT.Do(); Thread.Sleep(1000 * 5); CVC.Do(); SMT.Do(); VEN.Do(); ELF.Do(); XEM.Do(); Thread.Sleep(1000 * 5); } catch (Exception ex) { Console.WriteLine(ex.Message); } } }
public void OnClickCalibrateFacePoints() { Vector3 face; Vector3 leftEye; Vector3 rightEye; SMT.getFacePoints(out face, out leftEye, out rightEye); _calibratedFacePosition = face; _calibratedLeftEyePosition = leftEye; _calibratedRigthEyePosition = rightEye; }
/// <summary> /// /// </summary> /// <param name="type"></param> /// <param name="strID"></param> /// <param name="PostID">当前岗位ID</param> public RelationPostForm(SMT.SaaS.FrameworkUI.FormTypes type, string strID,T_HR_POST post) { InitializeComponent(); FormType = type; Post = post; InitParas(strID); if (Post != null) { txtPostCode.Text = Post.T_HR_POSTDICTIONARY.POSTCODE; txtPostName.Text = Post.T_HR_POSTDICTIONARY.POSTNAME; } }
//设置工具条 private void SetToolBar(SMT.SaaS.FrameworkUI.FormToolBar ToolBar) { ToolBar.btnRefresh.Visibility = System.Windows.Visibility.Collapsed; ToolBar.cbxCheckState.Visibility = System.Windows.Visibility.Collapsed; ToolBar.BtnView.Visibility = System.Windows.Visibility.Collapsed; ToolBar.btnAudit.Visibility = System.Windows.Visibility.Collapsed; ToolBar.txtCheckStateName.Visibility = System.Windows.Visibility.Collapsed; ToolBar.btnEdit.Visibility = System.Windows.Visibility.Collapsed; ToolBar.btnNew.Visibility = System.Windows.Visibility.Collapsed; ToolBar.btnDelete.Visibility = System.Windows.Visibility.Collapsed; CreateControl(ToolBar); }
void auditControl_AuditCompleted(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e) { //if (e.Result == AuditEventArgs.AuditResult.Auditing) //{ // this.Order.EditState = "审核中"; //} //else if (e.Result == AuditEventArgs.AuditResult.Successful) //{ // this.Order.EditState = "审核通过"; //} //else if (e.Result == AuditEventArgs.AuditResult.Fail) //{ // this.Order.EditState = "审核不通过"; //} }
// Use this for initialization void Start() { WebCamDevice[] webCamDevice; webCamDevice = WebCamTexture.devices; for (int i = 0; i < webCamDevice.Length; i++) { var device = webCamDevice[i]; //Debug.Log("id=" + i + ", name=" + device.name); _videoDeviceList.options.Add(new Dropdown.OptionData(device.name)); } //SMT.init(_cameraId); SMT.setCaptureShown(false); SMT.setARMarkerEdgeLength(0.036f); SMT.setUseARMarker(_useARMarker); SMT.setUseFaceTracking(_useFaceTracking); _calibratedFacePosition = Vector3.zero; _calibratedLeftEyePosition = Vector3.zero; _calibratedRigthEyePosition = Vector3.zero; _faceAngleBaseDistanceInputField.text = "0.2"; OnChangeFaceAngleBaseDistance(); _translationMagnificationInputField.text = "1.0"; OnChangeTranslationMagnification(); _rotationMagnificationInputField.text = "1.0"; OnChangeRotationMagnification(); _smoothingLevelInputField.text = "5"; OnChangeSmoothingLevel(); _autoAdjustmentInputField.text = "0.05"; OnChangeAutoAdjustment(); _uOSCInputField.text = "39540"; OnChangedOSCPort(); _facePositionList = new List <Vector3>(); _faceRotationList = new List <Vector3>(); for (int i = 0; i < MAX_SMOOTHING_LEVEL; i++) { _facePositionList.Add(Vector3.zero); _faceRotationList.Add(Vector3.zero); } }
public static string CN(SMT.FileUpLoad.Constants.FileStates _state) { switch (_state) { case SMT.FileUpLoad.Constants.FileStates.Pending: return "选中"; case SMT.FileUpLoad.Constants.FileStates.Uploading: return "上传中.."; case SMT.FileUpLoad.Constants.FileStates.Finished: return "完成"; case SMT.FileUpLoad.Constants.FileStates.Error: return "错误"; case SMT.FileUpLoad.Constants.FileStates.Deleted: return "删除"; case SMT.FileUpLoad.Constants.FileStates.Removed: return "移除"; case SMT.FileUpLoad.Constants.FileStates.Cancel: return "取消"; default: return ""; } }
// Update is called once per frame void Update() { // バモキャキャリブレーション用に現在の頭の位置を基準にTポーズで固定 if (_isForcedTPose) { // 左手 var leftOffset = new Vector3(0.8f, -0.2f, 0); leftOffset = _head.transform.rotation * leftOffset; _leftHand.transform.position = _head.transform.position + leftOffset; _leftHand.transform.rotation = _head.transform.rotation; _calibratedLeftHandPosition = _leftHand.transform.position; _calibratedLeftHandRotation = _leftHand.transform.rotation; // 右手 var rightOffset = new Vector3(-0.8f, -0.2f, 0); rightOffset = _head.transform.rotation * rightOffset; _rightHand.transform.position = _head.transform.position + rightOffset; _rightHand.transform.rotation = _head.transform.rotation; _calibratedRightHandPosition = _rightHand.transform.position; _calibratedRightHandRotation = _rightHand.transform.rotation; return; } SMT.update(); if (_useARMarker) { trackingHeadARMarker(); } if (_useFaceTracking) { trackingFacePoints(); } setStandardHandPose(); }
void AuditCtrl_Auditing(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e) { //if (SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID != Department.OWNERID && Department.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString()) //{ // RefreshUI(RefreshedTypes.HideProgressBar); // e.Result = SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel; // ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), // Utility.GetResourceStr("OPERATINGWITHOUTAUTHORITY"), // Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); // return; //} if (FormType == FormTypes.Resubmit && canSubmit == false) { RefreshUI(RefreshedTypes.HideProgressBar); e.Result = SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel; ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("请先保存修改的记录"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } /// Added by 罗捷 ///如果有可用的部门,则不允许再添加 if (Department.EDITSTATE == "1") { RefreshUI(RefreshedTypes.HideProgressBar); e.Result=SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel; ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("该部门已经存在,不能提交"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } }
/// <summary> ///保存 发布对象 /// </summary> /// <param name="issuanceExtOrgObj"></param> /// <param name="issuanceID"></param> private void AddDistributeObjList(SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj issuanceExtOrgObj, string issuanceID) { SMT.SaaS.OA.UI.SmtOACommonOfficeService.T_OA_DISTRIBUTEUSER distributeTmp = new SMT.SaaS.OA.UI.SmtOACommonOfficeService.T_OA_DISTRIBUTEUSER(); distributeTmp.DISTRIBUTEUSERID = Guid.NewGuid().ToString(); distributeTmp.MODELNAME = "OASatisfactionDistribute"; distributeTmp.FORMID = issuanceID; distributeTmp.VIEWTYPE = ((int)GetObjectType(issuanceExtOrgObj)).ToString(); if (distributeTmp.VIEWTYPE == ((int)IssuanceObjectType.Post).ToString()) //如果是选择岗位,则保存岗位级别 { T_HR_POST hr = (T_HR_POST)issuanceExtOrgObj.ObjectInstance; if (!string.IsNullOrEmpty(hr.POSTLEVEL.ToString())) distributeTmp.VIEWER = hr.POSTLEVEL.ToString(); else distributeTmp.VIEWER = hr.T_HR_POSTDICTIONARY.POSTLEVEL.ToString(); } else { distributeTmp.VIEWER = issuanceExtOrgObj.ObjectID; } distributeTmp.CREATEDATE = DateTime.Now; distributeTmp.CREATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; distributeTmp.CREATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; distributeTmp.CREATEPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; distributeTmp.CREATEDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; distributeTmp.CREATECOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; distributeTmp.OWNERID = Common.CurrentLoginUserInfo.EmployeeID; distributeTmp.OWNERNAME = Common.CurrentLoginUserInfo.EmployeeName; distributeTmp.OWNERPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; distributeTmp.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; distributeTmp.OWNERCOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; distributeLists.Add(distributeTmp); }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { Dictionary<string, string> para = new Dictionary<string, string>(); para.Add("EntityKey", Complain.COMPLAINID); Dictionary<string, string> para2 = new Dictionary<string, string>(); string strXmlObjectSource = string.Empty; string strKeyName = "COMPLAINID"; string strKeyValue = Complain.COMPLAINID; strXmlObjectSource = Utility.ObjListToXml<T_HR_KPIRECORDCOMPLAIN>(Complain, para, "HR", para2, strKeyName, strKeyValue); // 1s 冉龙军 //Utility.SetAuditEntity(entity, "T_HR_KPIRECORDCOMPLAIN", Complain.COMPLAINANTID, strXmlObjectSource); Utility.SetAuditEntity(entity, "T_HR_KPIRECORDCOMPLAIN", Complain.COMPLAINID, strXmlObjectSource); // 1e }
public void AddConsultation( SMT.Workflow.Common.Model.FLOW_CONSULTATION_T flowConsultation, SubmitData submitData) { if (strIsFlowEngine.ToLower() == "true") { try { #region 记录日志 SMT.Workflow.Common.Model.FLOW_CONSULTATION_T entity = flowConsultation; StringBuilder sb = new StringBuilder(); sb.AppendLine("FLOW_CONSULTATION_T entity= new FLOW_CONSULTATION_T();");// sb.AppendLine("entity.CONSULTATIONID = \"" + entity.CONSULTATIONID + "\";");// sb.AppendLine("entity.FLOWRECORDDETAILID = \"" + (entity.FLOW_FLOWRECORDDETAIL_T == null ? "" : entity.FLOW_FLOWRECORDDETAIL_T.FLOWRECORDDETAILID) + "\";"); sb.AppendLine("entity.CONSULTATIONUSERID = \"" + entity.CONSULTATIONUSERID + "\";"); sb.AppendLine("entity.CONSULTATIONUSERNAME = \"" + entity.CONSULTATIONUSERNAME + "\";"); sb.AppendLine("entity.CONSULTATIONCONTENT =\"" + entity.CONSULTATIONCONTENT + "\";"); sb.AppendLine("entity.CONSULTATIONDATE = \"" + entity.CONSULTATIONDATE + "\";"); sb.AppendLine("entity.REPLYUSERID = \"" + entity.REPLYUSERID + "\";"); sb.AppendLine("entity.REPLYUSERNAME = \"" + entity.REPLYUSERNAME + "\";"); sb.AppendLine("entity.REPLYCONTENT = \"" + entity.REPLYCONTENT + "\";"); sb.AppendLine("entity.REPLYDATE = \"" + entity.REPLYDATE + "\";"); sb.AppendLine("entity.FLAG = \"" + entity.FLAG + "\";");//0未回复,1回复 sb.AppendLine("FLOW_FLOWRECORDDETAIL_T model=new FLOW_FLOWRECORDDETAIL_T();"); sb.AppendLine(" model.FLOWRECORDDETAILID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOWRECORDDETAILID + "\";"); //sb.AppendLine(" model.FLOWRECORDMASTERID=\""+entity.FLOW_FLOWRECORDDETAIL_T.FLOWRECORDMASTERID+"\";"); sb.AppendLine(" model.STATECODE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.STATECODE + "\";"); sb.AppendLine(" model.PARENTSTATEID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.PARENTSTATEID + "\";"); sb.AppendLine(" model.CONTENT=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CONTENT + "\";"); sb.AppendLine(" model.CHECKSTATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CHECKSTATE + "\";//同意:1,不同意:0 ,未处理:2,会签同意7,会签不同意8"); sb.AppendLine(" model.FLAG=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLAG + "\";//已审批:1,未审批:0"); sb.AppendLine(" model.CREATEUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEUSERID + "\";"); sb.AppendLine(" model.CREATEUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEUSERNAME + "\";"); sb.AppendLine(" model.CREATECOMPANYID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATECOMPANYID + "\";"); sb.AppendLine(" model.CREATEDEPARTMENTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEDEPARTMENTID + "\";"); sb.AppendLine(" model.CREATEPOSTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEPOSTID + "\";"); sb.AppendLine(" model.CREATEDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEDATE + "\";"); sb.AppendLine(" model.EDITUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITUSERID + "\";"); sb.AppendLine(" model.EDITUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITUSERNAME + "\";"); sb.AppendLine(" model.EDITCOMPANYID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITCOMPANYID + "\";"); sb.AppendLine(" model.EDITDEPARTMENTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITDEPARTMENTID + "\";"); sb.AppendLine(" model.EDITPOSTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITPOSTID + "\";"); sb.AppendLine(" model.EDITDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITDATE + "\";"); sb.AppendLine(" model.AGENTUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.AGENTUSERID + "\";"); sb.AppendLine(" model.AGENTERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.AGENTERNAME + "\";"); sb.AppendLine(" model.AGENTEDITDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.AGENTEDITDATE + "\";"); sb.AppendLine(" entity.FLOW_FLOWRECORDDETAIL_T = model;"); sb.AppendLine("FLOW_FLOWRECORDMASTER_T eentity=new FLOW_FLOWRECORDMASTER_T();"); sb.AppendLine(" eentity.FLOWRECORDMASTERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWRECORDMASTERID + "\";"); sb.AppendLine(" eentity.INSTANCEID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.INSTANCEID + "\";"); sb.AppendLine(" eentity.FLOWSELECTTYPE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWSELECTTYPE + "\";//0:固定流程,1:自选流程"); sb.AppendLine(" eentity.MODELCODE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.MODELCODE + "\";"); sb.AppendLine(" eentity.FLOWCODE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWCODE + "\";"); sb.AppendLine(" eentity.FORMID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID + "\";"); sb.AppendLine(" eentity.FLOWTYPE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWTYPE + "\";//0:审批流程,1:任务流程"); sb.AppendLine(" eentity.CHECKSTATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CHECKSTATE + "\";//1:审批中,2:审批通过,3审批不通过,5撤销(为与字典保持一致)"); sb.AppendLine(" eentity.CREATEUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEUSERID + "\";"); sb.AppendLine(" eentity.CREATEUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEUSERNAME + "\";"); sb.AppendLine(" eentity.CREATECOMPANYID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATECOMPANYID + "\";"); sb.AppendLine(" eentity.CREATEDEPARTMENTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEDEPARTMENTID + "\";"); sb.AppendLine(" eentity.CREATEPOSTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEPOSTID + "\";"); sb.AppendLine(" eentity.CREATEDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEDATE + "\";"); sb.AppendLine(" eentity.EDITUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.EDITUSERID + "\";"); sb.AppendLine(" eentity.EDITUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.EDITUSERNAME + "\";"); sb.AppendLine(" eentity.EDITDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.EDITDATE + "\";"); sb.AppendLine(" eentity.ACTIVEROLE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.ACTIVEROLE + "\";"); sb.AppendLine(" eentity.BUSINESSOBJECT=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.BUSINESSOBJECT + "\";"); sb.AppendLine(" eentity.KPITIMEXML=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.KPITIMEXML + "\";"); sb.AppendLine(" entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T = eentity;"); Tracer.Debug("流程引擎的XML数据"+ "SubimtFlow入口处 进行咨询: FormID=" + submitData.FormID + ";ModelCode=" + submitData.ModelCode + " \r\n FLOW_CONSULTATION_T 实体:\r\n" + sb.ToString()); LogSubmitData(submitData); #endregion flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T = FlowBLL.GetFLOW_FLOWRECORDMASTER_T( flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWRECORDMASTERID); //FlowEngineService.EngineWcfGlobalFunctionClient FlowEngine = new FlowEngineService.EngineWcfGlobalFunctionClient(); //FlowEngineService.CustomUserMsg[] cs = new FlowEngineService.CustomUserMsg[1]; //FlowEngineService.CustomUserMsg cu = new FlowEngineService.CustomUserMsg(); //cu.FormID = flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID; //cu.UserID = flowConsultation.REPLYUSERID; //cs[0] = cu; List<CustomUserMsg> UserAndForm = new List<CustomUserMsg>(); CustomUserMsg cu = new CustomUserMsg(); cu.FormID = flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID; cu.UserID = flowConsultation.REPLYUSERID; UserAndForm.Add(cu); ModelInfo modelinfo = FlowBLL.GetSysCodeByModelCode( submitData.ModelCode); MessageData tmpMessageData = new MessageData("Flow", modelinfo.SysCode, flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATECOMPANYID, submitData.ModelCode, modelinfo.ModelName, submitData.FormID, flowConsultation.FLOW_FLOWRECORDDETAIL_T.STATECODE, flowConsultation.FLOW_FLOWRECORDDETAIL_T.CHECKSTATE, "", "", "", ""); FlowBLL flowBLL = new FlowBLL(); StringBuilder FlowResultXml = flowBLL.BuildMessageData(tmpMessageData); //FlowEngine = new FlowEngineService.EngineWcfGlobalFunctionClient(); //log = FlowEngine.SaveFlowTriggerData(FlowResultXml.ToString(), submitData.XML); if (!string.IsNullOrEmpty(flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.BUSINESSOBJECT)) { submitData.XML = flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.BUSINESSOBJECT; } //bool b = FlowEngine.FlowConsultati(cs, "", FlowResultXml.ToString(), submitData.XML); EnginFlowBLL efbll = new EnginFlowBLL(); bool b = efbll.FlowConsultati( UserAndForm, "", FlowResultXml.ToString(), submitData.XML); if (!b) { Tracer.Debug("发送咨询失败:FormID" + flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID + "\n\r submitData.XML:" + submitData.XML); } FlowBLL bll = new FlowBLL(); bll.AddConsultation( flowConsultation); } catch (Exception ex) { Tracer.Debug("发送咨询出错: FORMID=" + flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID + "异常信息:\r\n" + ex.InnerException + ex.Message); throw ex; } finally { } } }
public void ReplyConsultation( SMT.Workflow.Common.Model.FLOW_CONSULTATION_T flowConsultation, SubmitData submitData) { if (strIsFlowEngine.ToLower() == "true") { try { #region 记录日志 SMT.Workflow.Common.Model.FLOW_CONSULTATION_T entity = flowConsultation; StringBuilder sb = new StringBuilder(); sb.AppendLine("FLOW_CONSULTATION_T entity= new FLOW_CONSULTATION_T();");// sb.AppendLine("entity.CONSULTATIONID = \"" + entity.CONSULTATIONID + "\";");// sb.AppendLine("entity.FLOWRECORDDETAILID = \"" + (entity.FLOW_FLOWRECORDDETAIL_T == null ? "" : entity.FLOW_FLOWRECORDDETAIL_T.FLOWRECORDDETAILID) + "\";"); sb.AppendLine("entity.CONSULTATIONUSERID = \"" + entity.CONSULTATIONUSERID + "\";"); sb.AppendLine("entity.CONSULTATIONUSERNAME = \"" + entity.CONSULTATIONUSERNAME + "\";"); sb.AppendLine("entity.CONSULTATIONCONTENT =\"" + entity.CONSULTATIONCONTENT + "\";"); sb.AppendLine("entity.CONSULTATIONDATE = \"" + entity.CONSULTATIONDATE + "\";"); sb.AppendLine("entity.REPLYUSERID = \"" + entity.REPLYUSERID + "\";"); sb.AppendLine("entity.REPLYUSERNAME = \"" + entity.REPLYUSERNAME + "\";"); sb.AppendLine("entity.REPLYCONTENT = \"" + entity.REPLYCONTENT + "\";"); sb.AppendLine("entity.REPLYDATE = \"" + entity.REPLYDATE + "\";"); sb.AppendLine("entity.FLAG = \"" + entity.FLAG + "\";");//0未回复,1回复 sb.AppendLine("FLOW_FLOWRECORDDETAIL_T model=new FLOW_FLOWRECORDDETAIL_T();"); sb.AppendLine(" model.FLOWRECORDDETAILID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOWRECORDDETAILID + "\";"); //sb.AppendLine(" model.FLOWRECORDMASTERID=\""+entity.FLOW_FLOWRECORDDETAIL_T.FLOWRECORDMASTERID+"\";"); sb.AppendLine(" model.STATECODE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.STATECODE + "\";"); sb.AppendLine(" model.PARENTSTATEID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.PARENTSTATEID + "\";"); sb.AppendLine(" model.CONTENT=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CONTENT + "\";"); sb.AppendLine(" model.CHECKSTATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CHECKSTATE + "\";//同意:1,不同意:0 ,未处理:2,会签同意7,会签不同意8"); sb.AppendLine(" model.FLAG=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLAG + "\";//已审批:1,未审批:0"); sb.AppendLine(" model.CREATEUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEUSERID + "\";"); sb.AppendLine(" model.CREATEUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEUSERNAME + "\";"); sb.AppendLine(" model.CREATECOMPANYID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATECOMPANYID + "\";"); sb.AppendLine(" model.CREATEDEPARTMENTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEDEPARTMENTID + "\";"); sb.AppendLine(" model.CREATEPOSTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEPOSTID + "\";"); sb.AppendLine(" model.CREATEDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.CREATEDATE + "\";"); sb.AppendLine(" model.EDITUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITUSERID + "\";"); sb.AppendLine(" model.EDITUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITUSERNAME + "\";"); sb.AppendLine(" model.EDITCOMPANYID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITCOMPANYID + "\";"); sb.AppendLine(" model.EDITDEPARTMENTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITDEPARTMENTID + "\";"); sb.AppendLine(" model.EDITPOSTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITPOSTID + "\";"); sb.AppendLine(" model.EDITDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.EDITDATE + "\";"); sb.AppendLine(" model.AGENTUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.AGENTUSERID + "\";"); sb.AppendLine(" model.AGENTERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.AGENTERNAME + "\";"); sb.AppendLine(" model.AGENTEDITDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.AGENTEDITDATE + "\";"); sb.AppendLine(" entity.FLOW_FLOWRECORDDETAIL_T = model;"); sb.AppendLine("FLOW_FLOWRECORDMASTER_T eentity=new FLOW_FLOWRECORDMASTER_T();"); sb.AppendLine(" eentity.FLOWRECORDMASTERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWRECORDMASTERID + "\";"); sb.AppendLine(" eentity.INSTANCEID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.INSTANCEID + "\";"); sb.AppendLine(" eentity.FLOWSELECTTYPE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWSELECTTYPE + "\";//0:固定流程,1:自选流程"); sb.AppendLine(" eentity.MODELCODE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.MODELCODE + "\";"); sb.AppendLine(" eentity.FLOWCODE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWCODE + "\";"); sb.AppendLine(" eentity.FORMID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID + "\";"); sb.AppendLine(" eentity.FLOWTYPE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWTYPE + "\";//0:审批流程,1:任务流程"); sb.AppendLine(" eentity.CHECKSTATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CHECKSTATE + "\";//1:审批中,2:审批通过,3审批不通过,5撤销(为与字典保持一致)"); sb.AppendLine(" eentity.CREATEUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEUSERID + "\";"); sb.AppendLine(" eentity.CREATEUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEUSERNAME + "\";"); sb.AppendLine(" eentity.CREATECOMPANYID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATECOMPANYID + "\";"); sb.AppendLine(" eentity.CREATEDEPARTMENTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEDEPARTMENTID + "\";"); sb.AppendLine(" eentity.CREATEPOSTID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEPOSTID + "\";"); sb.AppendLine(" eentity.CREATEDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATEDATE + "\";"); sb.AppendLine(" eentity.EDITUSERID=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.EDITUSERID + "\";"); sb.AppendLine(" eentity.EDITUSERNAME=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.EDITUSERNAME + "\";"); sb.AppendLine(" eentity.EDITDATE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.EDITDATE + "\";"); sb.AppendLine(" eentity.ACTIVEROLE=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.ACTIVEROLE + "\";"); sb.AppendLine(" eentity.BUSINESSOBJECT=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.BUSINESSOBJECT + "\";"); sb.AppendLine(" eentity.KPITIMEXML=\"" + entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.KPITIMEXML + "\";"); sb.AppendLine(" entity.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T = eentity;"); Tracer.Debug("流程引擎的XML数据 SubimtFlow入口处 回复咨询信息: FormID=" + submitData.FormID + ";ModelCode=" + submitData.ModelCode + " \r\n FLOW_CONSULTATION_T 实体:\r\n" + sb.ToString()); LogSubmitData(submitData); #endregion //FlowEngineService.EngineWcfGlobalFunctionClient FlowEngine = new FlowEngineService.EngineWcfGlobalFunctionClient(); EnginFlowBLL FlowEngine = new EnginFlowBLL(); //Byte[] Bo = System.Text.UTF8Encoding.UTF8.GetBytes(submitData.XML); //XElement xemeBoObject = XElement.Load(System.Xml.XmlReader.Create(new MemoryStream(Bo))); //string strSystemCode = (from item in xemeBoObject.Descendants("Name") select item).FirstOrDefault().Value; ModelInfo modelinfo = FlowBLL.GetSysCodeByModelCode( submitData.ModelCode); // FlowEngine.FlowConsultatiClose(modelinfo.SysCode, flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID, flowConsultation.REPLYUSERID); FlowEngine.FlowConsultatiClose( modelinfo.SysCode, flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID, flowConsultation.REPLYUSERID); FlowBLL bll = new FlowBLL(); bll.ReplyConsultation( flowConsultation); } catch (Exception ex) { Tracer.Debug("回复咨询出错,异常信息: FORMID=" + flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID + "异常信息:\r\n" + ex.InnerException + ex.Message); throw ex; } } }
private bool IsLevelAdded(SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY dict) { bool rslt = false; var ents = from p in postLevels where p.POSTLEVEL == Convert.ToDecimal(dict.DICTIONARYVALUE) select p; rslt = ents.Count() > 0; return rslt; }
void OnDestroy() { SMT.destroy(); }
public void OnUseEyeTracking() { _useEyeTracking = !_useEyeTracking; SMT.setUseEyeTracking(_useEyeTracking); }
public void OnUseARMarker() { _useARMarker = !_useARMarker; SMT.setUseARMarker(_useARMarker); }
public void OnChangeCaptureShown() { _isCaptureShown = !_isCaptureShown; SMT.setCaptureShown(_isCaptureShown); }
void trackingHeadARMarker() { Vector3 t = Vector3.zero; Vector3 r = Vector3.zero; if (SMT.isARMarkerDetected(0)) { SMT.getARMarker6DoF(0, out t, out r); } Vector3 t2 = Vector3.zero; Vector3 r2 = Vector3.zero; if (SMT.isARMarkerDetected(1)) { SMT.getARMarker6DoF(1, out t2, out r2); } // Z Axis Flipping 対策 if (SMT.isARMarkerDetected(0) && SMT.isARMarkerDetected(1)) { var f1 = Vector3.forward; var q = Quaternion.Euler(r); f1 = q * f1; var f2 = Vector3.forward; q = Quaternion.Euler(r2); f2 = q * f2; float dot = Vector3.Dot(f1, f2); if (dot < 0.75f) { //return; // サブマーカーの作り方、角度によって変わる } } if (SMT.isARMarkerDetected(0)) { //var tempSmoothingLevel = _smoothingLevel; float ignoreAngle = 30; if (-ignoreAngle < r.x && r.x < ignoreAngle && -ignoreAngle < r.y && r.y < ignoreAngle) { if (SMT.isARMarkerDetected(1)) { if (r.y < r2.y) { return; // Z Axis Flipping } r = r2; var subMarkerAdjustmentAngle = 50.0f; r.y = r.y + subMarkerAdjustmentAngle; // 横並びのサブマーカーの角度を補正する r.z = r.z + (subMarkerAdjustmentAngle * Mathf.Sin(r.x * Mathf.Deg2Rad)); // Yの角度が異なるとX軸で上下に振った場合Zの補正が必要 } //_smoothingLevel = 10; } else { // Z Axis Flippingの確認 // パネル正面向きのVecをZ軸で180度回転させて内積をとる. var currentEulerAngle = _head.transform.eulerAngles; // 現在の向きをZ軸で反転させた正面ベクトルを作る var cq = Quaternion.Euler(0, 0, 180) * Quaternion.Euler(currentEulerAngle); var zAxisFlipF = cq * Vector3.forward; // 新しい向きの正面ベクトル var f = cq * Vector3.forward; cq = Quaternion.Euler(r); f = cq * f; float dot = Vector3.Dot(f, zAxisFlipF); if (dot > 0.75f) { if (_zAxisFlipFrameCount < 2) // 一定フレーム数以上その姿勢が続く場合は誤検出の可能性が高い { _zAxisFlipFrameCount++; return; } } } _zAxisFlipFrameCount = 0; // マーカーの奥方向(+Z)に移動させる t = t + ((Quaternion.Euler(r) * Vector3.forward) * 0.1f); // 順番大事、クオータニオンを先に置かないとエラーになる smoothTransform(ref t, ref r); //_smoothingLevel = tempSmoothingLevel; _head.transform.rotation = Quaternion.Euler(r); _head.transform.position = t; } }
public void OnChangeVideoDeviceList() { SMT.destroy(); _cameraStartButtonText.text = "Start"; }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { EntityBrowser browser = this.FindParentByType<EntityBrowser>(); browser.AuditCtrl.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(AuditCtrl_Auditing); Dictionary<string, string> para = new Dictionary<string, string>(); para.Add("DEPARTMENTNAME", Department.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME); para.Add("CREATEUSERNAME", createUserName); para.Add("OWNER", createUserName); //Dictionary<string, string> para2 = new Dictionary<string, string>(); //para2.Add("T_HR_COMPANYReference", Department.T_HR_COMPANY == null ? "" : Department.T_HR_COMPANY.COMPANYID + "#" + Department.T_HR_COMPANY.CNAME); //para2.Add("T_HR_DEPARTMENTDICTIONARYReference", Department.T_HR_DEPARTMENTDICTIONARY == null ? "" : Department.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTDICTIONARYID + "#" + Department.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME); //para2.Add("DEPARTMENTBOSSHEAD", (lkHead.DataContext as T_HR_POST) == null ? "" : (lkHead.DataContext as T_HR_POST).POSTID + "#" + (lkHead.DataContext as T_HR_POST).T_HR_POSTDICTIONARY.POSTNAME); entity.SystemCode = "HR"; string strXmlObjectSource = string.Empty; if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML)) strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML, Department); // strXmlObjectSource = Utility.ObjListToXml<T_HR_DEPARTMENT>(Department, para, "HR", para2, null); Utility.SetAuditEntity(entity, "T_HR_DEPARTMENT", Department.DEPARTMENTID, strXmlObjectSource); }
private void ShowOrganization(SMT.SaaS.FrameworkUI.OrgTreeItemTypes orgTreeItemType, string nameType) { LooKUP up = new LooKUP(orgTreeItemType, "你选择的条件是:" + lookTitle); up.Width = 700; up.SelectedClick += (obj, ev) => { if (up.SelectList != null) { string selectid = ""; if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Company == orgTreeItemType) { if (nameType == "COMPANYNAME") { selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY)(up.SelectList.FirstOrDefault().ObjectInstance)).CNAME; } else { selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY)(up.SelectList.FirstOrDefault().ObjectInstance)).COMPANYID; } } if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Department == orgTreeItemType) { if (nameType == "DEPARTMENTNAME") { selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_DEPARTMENT)(up.SelectList.FirstOrDefault().ObjectInstance)).T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME; } else { selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_DEPARTMENT)(up.SelectList.FirstOrDefault().ObjectInstance)).DEPARTMENTID; } } if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Post == orgTreeItemType) { if (nameType == "POSTNAME") { selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_POST)(up.SelectList.FirstOrDefault().ObjectInstance)).T_HR_POSTDICTIONARY.POSTNAME; } else { selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_POST)(up.SelectList.FirstOrDefault().ObjectInstance)).POSTID; } } if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Personnel == orgTreeItemType) { if (nameType == "OWNER" || nameType == "CREATEUSERNAME" || nameType == "OWNERNAME" || nameType == "CURRENTEMPLOYEENAME" || nameType == "CLAIMSWERENAME" || nameType == "EMPLOYEENAME" || nameType == "UPDATEUSERNAME" ) { selectid = ((SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)(up.SelectList.FirstOrDefault().ObjectInstance)).EMPLOYEECNAME; } else { selectid = ((SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)(up.SelectList.FirstOrDefault().ObjectInstance)).EMPLOYEEID; } } txtCompareValue.Text = selectid; } }; up.Show(); return; }
private void AddDistributeObjList(SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj issuanceExtOrgObj, string issuanceID) { T_OA_DISTRIBUTEUSER distributeTmp = new T_OA_DISTRIBUTEUSER(); distributeTmp.DISTRIBUTEUSERID = Guid.NewGuid().ToString(); distributeTmp.MODELNAME = "CompanySendDoc"; distributeTmp.FORMID = issuanceID; distributeTmp.VIEWTYPE = ((int)GetObjectType(issuanceExtOrgObj)).ToString(); if (distributeTmp.VIEWTYPE == ((int)IssuanceObjectType.Post).ToString()) //如果是选择岗位,则保存岗位级别 { //if (!string.IsNullOrEmpty((issuanceExtOrgObj.ObjectInstance as SMT.Saas.Tools.OrganizationWS.T_HR_POST).POSTLEVEL.ToString())) //{ // distributeTmp.VIEWER = (issuanceExtOrgObj.ObjectInstance as SMT.Saas.Tools.OrganizationWS.T_HR_POST).POSTLEVEL.ToString(); //} //else //{ // distributeTmp.VIEWER = (issuanceExtOrgObj.ObjectInstance as SMT.Saas.Tools.OrganizationWS.T_HR_POST).T_HR_POSTDICTIONARY.POSTLEVEL.ToString(); //} } else { distributeTmp.VIEWER = issuanceExtOrgObj.ObjectID; } distributeTmp.CREATEDATE = DateTime.Now; distributeTmp.CREATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; distributeTmp.CREATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; distributeTmp.CREATEPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; distributeTmp.CREATEDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; distributeTmp.CREATECOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; distributeTmp.OWNERID = Common.CurrentLoginUserInfo.EmployeeID; distributeTmp.OWNERNAME = Common.CurrentLoginUserInfo.EmployeeName; distributeTmp.OWNERPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; distributeTmp.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; distributeTmp.OWNERCOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; if (distributeTmp.VIEWTYPE != ((int)IssuanceObjectType.Post).ToString()) //如果是选择岗位,则保存岗位级别 { var ents = from ent in distributeLists where ent.FORMID == distributeTmp.FORMID && ent.VIEWER == distributeTmp.VIEWER && ent.VIEWTYPE == distributeTmp.VIEWTYPE select ent; if (ents.Count() == 0) { distributeLists.Add(distributeTmp); } } }
public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity) { //string strXmlObjectSource = string.Empty; //strXmlObjectSource = Utility.ObjListToXml<T_HR_SALARYSYSTEM>(salarySystem, "HR"); //Utility.SetAuditEntity(entity, "T_HR_SALARYSYSTEM", salarySystem.SALARYSYSTEMID, strXmlObjectSource); Dictionary<string, string> para = new Dictionary<string, string>(); para.Add("SALARYSYSTEMNAME", salarySystem.SALARYSYSTEMNAME); para.Add("EntityKey", salarySystem.SALARYSYSTEMID); Dictionary<string, string> para2 = new Dictionary<string, string>(); string strXmlObjectSource = string.Empty; string strKeyName = "SALARYSYSTEMID"; string strKeyValue = salarySystem.SALARYSYSTEMID; strXmlObjectSource = Utility.ObjListToXml<T_HR_SALARYSYSTEM>(salarySystem, para, "HR", para2, strKeyName, strKeyValue); Dictionary<string, string> paraIDs = new Dictionary<string, string>(); paraIDs.Add("CreateUserID", salarySystem.CREATEUSERID); paraIDs.Add("CreatePostID", salarySystem.OWNERPOSTID); paraIDs.Add("CreateDepartmentID", salarySystem.OWNERDEPARTMENTID); paraIDs.Add("CreateCompanyID", salarySystem.OWNERCOMPANYID); if (salarySystem.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString()) { Utility.SetAuditEntity(entity, "T_HR_SALARYSYSTEM", salarySystem.SALARYSYSTEMID, strXmlObjectSource, paraIDs); } else { Utility.SetAuditEntity(entity, "T_HR_SALARYSYSTEM", salarySystem.SALARYSYSTEMID, strXmlObjectSource); } }
void audit_Auditing(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e) { RefreshUI(RefreshedTypes.ProgressBar); }
public string UpdateFlow( SMT.Workflow.Common.Model.FLOW_FLOWRECORDDETAIL_T entity) { FlowBLL bll = new FlowBLL(); bll.UpdateFlowDetailRecord( entity, "", ""); return ""; }
/// <summary> /// 提交审核完成 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void audit_AuditCompleted(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e) { auditResult = e.Result; switch (auditResult) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: //todo 审核中 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel: //todo 取消 Cancel(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: //todo 终审通过 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: //todo 审核不通过 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Error: //todo 审核异常 HandError(); break; } }
void client_GetSysMenuByEntityCodeCompleted(object sender, SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs e) { if (e.Error != null) { return; } if (e.Result == null) { return; } SMT.Saas.Tools.PermissionWS.T_SYS_ENTITYMENU menu = e.Result; if (string.IsNullOrWhiteSpace(menu.MENUICONPATH)) { return; } if (Application.Current.Resources["RowLogo" + menu.ENTITYCODE] == null) { Application.Current.Resources.Add("RowLogo" + menu.ENTITYCODE, menu.MENUICONPATH); } //Image logo = new Image(); //EntityLogo = menu.MENUICONPATH; //logo = e.UserState as Image; //if (logo == null) //{ // return; //} //logo.Margin = new Thickness(2, 2, 0, 0); //logo.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(menu.MENUICONPATH, UriKind.Relative)); }
/// <summary> /// 引擎及其XML /// </summary> public void RemindEngineXml(SMT.Saas.Tools.EngineWS.EngineWcfGlobalFunctionClient FlowEngine, string randomPersonRemind, string guidRandomPersonRemind, string MessageUserID) { DateTime strDay = DateTime.Now; string Day = strDay.ToString("yyyy/MM/dd", System.Globalization.DateTimeFormatInfo.InvariantInfo); string Hour = strDay.AddHours(int.Parse(randomPersonRemind)).ToString("HH:mm"); string strXml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" + "<System>" + "<CompanyCode></CompanyCode>" + "<SystemCode></SystemCode>" + "<ModelCode></ModelCode>" + "<ApplicationOrderCode>" + guidRandomPersonRemind + "</ApplicationOrderCode>" + "<TaskStartDate>" + Day + "</TaskStartDate>" + "<TaskStartTime>" + Hour + "</TaskStartTime>" + "<ProcessCycle></ProcessCycle>" + "<ReceiveUser>" + MessageUserID + "</ReceiveUser>" + "<ReceiveRole>Role0002</ReceiveRole>" + "<MessageBody>消息主体{ReceiveUser}</MessageBody>" + "<MsgLinkUrl><TTT></TTT>链接Url</MsgLinkUrl>" + "<ProcessWcfUrl></ProcessWcfUrl>" + "<WcfFuncName>EventTriggerProcess</WcfFuncName>" + "<WcfFuncParamter>" + "<FormID>" + guidRandomPersonRemind + "</FormID>" + "<ReceiveUser>" + MessageUserID + "</ReceiveUser>" + "<Content>距离抽查打分还有" + randomPersonRemind + " 小时请迟快处理</Content>" + "<Url></Url>" + "</WcfFuncParamter>" + "<WcfParamSplitChar>Г</WcfParamSplitChar>" + "<WcfBinding>basicHttpBinding</WcfBinding>" + "</System>"; //调用引擎 FlowEngine.SaveEventDataAsync(strXml); }
private IssuanceObjectType GetObjectType(SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj issuanceExtOrgObj) { if (issuanceExtOrgObj.ObjectType == SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Company) { return IssuanceObjectType.Company; } else if (issuanceExtOrgObj.ObjectType == SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Department) { return IssuanceObjectType.Department; } else if (issuanceExtOrgObj.ObjectType == SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Post) { return IssuanceObjectType.Post; } else if (issuanceExtOrgObj.ObjectType == SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Personnel) { return IssuanceObjectType.Employee; } return IssuanceObjectType.Company; }
private void GetAllPost(SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOST ent)//获取当前员工、所属公司、所属部门 { if (ent != null && ent.EMPLOYEEPOSTS != null) { txtEMPLOYEENAME.Text = ent.EMPLOYEEPOSTS[0].T_HR_EMPLOYEE.EMPLOYEECNAME; //员工姓名 txtCompanyId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_COMPANY.CNAME;//公司 txtDepartmentId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME;//部门 } }
void fbCtr_SaveCompleted(object sender, SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs e) { if (e.Message != null && e.Message.Count() > 0) { Utility.ShowMessageBox("UPDATE", isSubmitFlow, false); RefreshUI(RefreshedTypes.HideProgressBar); } else { Utility.ShowMessageBox("UPDATE", isSubmitFlow, true); if (isSubmitFlow) saveType = RefreshedTypes.CloseAndReloadData; RefreshUI(saveType); } }
void trackingFacePoints() { if (SMT.isFacePointsDetected()) { Vector3 face; Vector3 leftEye; Vector3 rightEye; SMT.getFacePoints(out face, out leftEye, out rightEye); // 目の間の距離 var eyeLtoR = rightEye - leftEye; eyeLtoR.z = 0; //float eyeDistance = eyeLtoR.magnitude; var faceLength = face.z * 2; // 顏の直径 var standardLength = 0.20f; // 20cm var pixParM = standardLength / faceLength; var facePosition = face - _calibratedFacePosition; facePosition.y *= -1; facePosition *= pixParM; var faceRotationEuler = Vector3.zero; if (_calibratedFacePosition.z < face.z) { facePosition.z = -1 + (_calibratedFacePosition.z / face.z); } else { facePosition.z = 0; } faceRotationEuler.z = -Mathf.Atan(eyeLtoR.y / eyeLtoR.x) * Mathf.Rad2Deg; var radY = facePosition.x / _faceAngleBaseDistance; if (Mathf.Abs(radY) > 1.0f) { radY = radY / Mathf.Abs(radY); // -1 or 1に補正 } faceRotationEuler.y = -Mathf.Asin(radY) * Mathf.Rad2Deg; var radX = facePosition.y / _faceAngleBaseDistance; if (Mathf.Abs(radX) > 1.0f) { radX = radX / Mathf.Abs(radX); // -1 or 1に補正 } faceRotationEuler.x = Mathf.Asin(radX) * Mathf.Rad2Deg; faceRotationEuler.x = faceRotationEuler.x * 2; // 縦方向の検出は弱いので大きく動くように補正. // 倍率適用 facePosition = facePosition * _translationMagnification; faceRotationEuler = faceRotationEuler * _rotationMagnification; if (faceRotationEuler.x < -75) { faceRotationEuler.x = -75; } if (faceRotationEuler.x > 75) { faceRotationEuler.x = 75; } if (faceRotationEuler.z < -75) { faceRotationEuler.z = -75; } if (faceRotationEuler.z > 75) { faceRotationEuler.z = 75; } // オフセット適用 facePosition.y += 1.3f; smoothTransform(ref facePosition, ref faceRotationEuler); var faceRotation = Quaternion.Euler(faceRotationEuler); _head.transform.position = facePosition; _head.transform.rotation = faceRotation; // 顏の中央位置を自動調整 if (_autoAdjustmentRatio > 0) { var z = _calibratedFacePosition.z; // Zは維持、XYのみずれやすいので調整する _calibratedFacePosition = (_calibratedFacePosition * (1.0f - _autoAdjustmentRatio)) + (face * _autoAdjustmentRatio); _calibratedFacePosition.z = z; } } }