/// <summary> ///累加日计划面积 /// </summary> /// <param name="e"></param> public override void EndOperationTransaction(EndOperationTransactionArgs e) { base.EndOperationTransaction(e); IViewService Services = ServiceHelper.GetService <IViewService>(); if (selectedRows != null && selectedRows.Count() != 0) { IMetaDataService metadataService = Kingdee.BOS.App.ServiceHelper.GetService <IMetaDataService>(); //string SoureFormId = "SZXY_FHJTRSCJH"; //获取单据元数据 //FormMetadata BilMetada = metadataService.Load(Context, SoureFormId) as FormMetadata; foreach (DynamicObject dy in selectedRows) { string Id = Convert.ToString(dy["Id"]); if (dy["SZXY_XYLSEntry1"] is DynamicObjectCollection Entrys) { foreach (var item in Entrys.Where(op => !Convert.ToString(op["F_SZXY_PlasticNo1"]).IsNullOrEmptyOrWhiteSpace())) { string FHNo = Convert.ToString(item["F_SZXY_PlasticNo1"]); if (!FHNo.IsNullOrEmptyOrWhiteSpace()) { //改写流转状态 string UpdateStateSql = string.Format("/*dialect*/update SZXY_t_XYFH set F_SZXY_Integer={0} where F_SZXY_RecNo='{1}' ", 0, Convert.ToString(FHNo)); int res = DBServiceHelper.Execute(Context, UpdateStateSql); } } } } } }
public Address163(string name, string pwd, Entrys type) { this.cookieCon = new CookieContainer(); this.uName = name; this.pwd = pwd; this.en = type; }
public void AddTrackedEvent(TrackedEventType eventID, UnityAction <XRNode, GameObject> trackedEvent) { Entry entry = new Entry { eventID = eventID }; entry.callback.AddListener(trackedEvent); Entrys.Add(entry); }
public void AddMediaPlayerEvent(MediaPlayerEvent.EventType eventID, UnityAction trackedEvent) { Entry entry = new Entry { eventID = eventID }; entry.callback.AddListener(trackedEvent); Entrys.Add(entry); }
private void Del(object sender, RoutedEventArgs e) { if (SelectedEntry != null) { Entrys.Remove(SelectedEntry); SelectedEntry = null; NotifyPropertyChanged("Entrys"); NotifyPropertyChanged("SelectedEntry"); } }
public AddressSohu(string name, string pwd, Entrys type) { this.mailSohu = string.Empty; this.cookieCon = new CookieContainer(); this.rb = string.Empty; string str = name.Substring(0, name.IndexOf("@")); string str2 = FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "MD5"); this.en = type; this.mailSohu = "http://passport.sohu.com/sso/login.jsp?userid=" + str + "%40sohu.com&password="******"&appid=1000&persistentcookie=0&isSLogin=1&s=1275999259296&b=5&w=1024&pwdtype=1&v=26"; }
/// <summary> /// 生成一张员工在职表(如果改员工被同意入职) /// </summary> /// <param name="RefOrderId"></param> public void AddStaffInfo(int RefOrderId) { //根据记录表中关联的入职信息id 查询到申请人信息 Entrys entrys = _entrysResposit.FindAll().FirstOrDefault(x => x.Id == RefOrderId); //生成一张员工在职表(如果改员工被同意入职) #region 生成工号 (后期性能差) bool isoks = true; string non = ""; while (isoks) { non = "CH" + GetTime.GetTimeStamp() + GetTime.GetRandom(); Staff staffNon = _staffResposit.FindAll().FirstOrDefault(x => x.NoN == non); if (staffNon == null) { isoks = false; } } #endregion #region 审批同意后需要生成正式员工表的信息 Staff staffIn = null; staffIn = new Staff() { JobId = entrys.JobId, BirthDay = entrys.BirthDay, Name = entrys.StaffName, NoN = non, CreateTime = DateTime.Now, RoleId = entrys.JobId, Passwords = "123456", // 初始密码 Sex = entrys.Sex == 1 ? "男" : "女", Tel = entrys.Tel, Email = entrys.Email, Statusd = "入职", IsHSEGroup = "是", IsLaunch = 0, OrgID = 1, Addressd = entrys.Addressd, NativePlace = "待定", }; //添加 _staffResposit.AddInfo(staffIn); #endregion }
/// <summary> /// 修改员工入职信息 /// </summary> /// <param name="entrys"></param> /// <returns></returns> public string updateEntrysInfoAll(Entrys entrys) { if (_entrysResposit.UpdateInfo((x) => new Entrys { IDNumber = entrys.IDNumber, ProbationarySalary = entrys.ProbationarySalary, Sex = entrys.Sex, StaffName = entrys.StaffName, Tel = entrys.Tel, Email = entrys.Email, Major = entrys.Major, BirthDay = entrys.BirthDay, UpdateTime = DateTime.Now }, x => x.Id == entrys.Id) > 0) { return("ok"); } return("修改失败!"); }
private void Load(string file) { try { Application.Current.Dispatcher.Invoke(() => Entrys.Clear()); List <dynamic> entrys = new List <dynamic>(); Interlocked.Exchange(ref _isLoading, 1); using var reader = new StreamReader(file); string?line = string.Empty; while ((line = reader.ReadLine()) != null) { dynamic target = JToken.Parse(line); ReconstructMessage(target); entrys.Add(target); } Application.Current.Dispatcher.Invoke(() => { foreach (dynamic entry in entrys) { Entrys.Add(entry); } _grid.GridColumnSizer.ResetAutoCalculationforAllColumns(); _grid.GridColumnSizer.Refresh(); }); } catch (Exception e) { MessageBox.Show(e.ToString()); } finally { Interlocked.Exchange(ref _isLoading, 0); } }
public AddressGmail(string name, string pwd, Entrys type) { this.uName = name; this.pwd = pwd; this.en = type; }
public async Task <ActionResult <IEnumerable <Entrys> > > UpdateEntrysInfoAll([FromBody] Entrys entrys) { return(Ok(await Task.Factory.StartNew(() => _staffService.updateEntrysInfoAll(entrys)))); }
/// <summary> /// Adds new Entry to this day /// </summary> /// <param name="e"></param> public void AddEntry(Entry e) => Entrys.Add(e);
//adds an entry to this day public void AddEntry(Entry e) { Entrys.Add(e); }
/// <summary> /// 添加员工入职信息 /// </summary> /// <param name="entrys"></param> /// <returns></returns> public string addEntrysInfoAll(Entrys entrys) { string isOk = "添加失败!"; //开启一个事务 _entrysResposit.StatrAffair(() => { entrys.CreateTime = DateTime.Now; entrys.IsDel = 0; //得到申请表id int entrysId = _entrysResposit.AddCreateInfo(entrys); ProcessStepRecord processStepRecord = new ProcessStepRecord(); processStepRecord.Typed = ProcessType.员工入职审批流程.ToString(); if (entrys.JobId == (int)JobEmun.油站员工) { processStepRecord.OilStation = 1; //油站经理 } else if (entrys.JobId == (int)JobEmun.人事员工) { processStepRecord.ExecutiveDirector = 1; //人事经理 } else if (entrys.JobId == (int)JobEmun.油站经理 || entrys.JobId == (int)JobEmun.财务经理) { processStepRecord.ExecutiveDirector = 1; //人事经理 processStepRecord.GeneralManagerOfPerson = 1; //主管 } else if (entrys.JobId == (int)JobEmun.人事经理 || entrys.JobId == (int)JobEmun.主管) { processStepRecord.GeneralManager = 1; //总经理 processStepRecord.ChiefInspector = 1; //总监 } else if (entrys.JobId == (int)JobEmun.总经理) { processStepRecord.ChiefInspector = 1; } processStepRecord.CreateTime = DateTime.Now; processStepRecord.WhetherToExecute = 1; #region 生成non号 不可重复 (后期数据多了之后需要改进) bool isok = true; string non = ""; while (isok) { non = GetTime.randomPwd() + GetTime.randomPwd() + GetTime.randomPwd(); var list = (from pr in _processStepRecordResposit.FindAll() where non == pr.NoN select new { }).ToList(); if (list.Count == 0) { isok = false; } } #endregion processStepRecord.NoN = non; processStepRecord.RefOrderId = entrysId; //关联的入职申请表的主键id processStepRecord.Result = 0; //表示已经申请还未开始审核 _processStepRecordResposit.AddInfo(processStepRecord); isOk = "ok"; }); return(isOk); }