Esempio n. 1
0
        /// <summary>
        /// 根据职位名称获得职位基本信息
        /// </summary>
        /// <param name="Position"></param>
        /// <returns></returns>
        public static PositionBasicInfo GetBasicPositionInfo(string Position)
        {
            PositionBasicInfo t = new PositionBasicInfo();

            t = PositionBasicDataSet.Find((x) => { return(x.isOpen && x.Position == Position); });
            return(t);
        }
Esempio n. 2
0
 public frmPositionInit(string position)
 {
     InitializeComponent();
     if (!string.IsNullOrEmpty(position))
     {
         IsCreate = false;
         basic    = DataCenter.GetBasicPositionInfo(position);
     }
     else
     {
         IsCreate = true;
     }
 }
 public frmPositionInit(string position)
 {
     InitializeComponent();
     if (!string.IsNullOrEmpty(position))
     {
         IsCreate = false;
         basic = DataCenter.GetBasicPositionInfo(position);
     }
     else
     {
         IsCreate = true;
     }
 }
Esempio n. 4
0
        /// <summary>
        /// OK
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOK_Click(object sender, EventArgs e)
        {
            PositionBasicInfo basic = new PositionBasicInfo();

            basic.No            = (DataCenter.PositionBasicDataSet.Count + 1).ToString();
            basic.Position      = txtPosition.Text;
            basic.HiringManager = cmbHiringManager.Text;
            basic.ApprovedDate  = DataPickerApprovedDate.Value;
            basic.OpenDate      = DataPickerOpenDate.Value;
            basic.Target        = (int)NumTarget.Value;
            basic.isOpen        = true;
            basic.BandHBound    = (PositionBasicInfo.BandEnum)cmbHBound.SelectedIndex;
            basic.BandLBound    = (PositionBasicInfo.BandEnum)cmbLBound.SelectedIndex;
            basic.HiringType    = (PositionBasicInfo.HiringTypeEnum)cmbHiringType.SelectedIndex;
            DataCenter.PositionBasicDataSet.Add(basic);
            XmlSerializer xml = new XmlSerializer(typeof(List <PositionBasicInfo>));

            xml.Serialize(new StreamWriter(SystemManager.PositionBasicInfoXmlFilename), DataCenter.PositionBasicDataSet);
            DataCenter.ReCompute();
            Close();
        }
Esempio n. 5
0
 /// <summary>
 /// 根据职位名称获得职位基本信息
 /// </summary>
 /// <param name="Position"></param>
 /// <returns></returns>
 public static PositionBasicInfo GetBasicPositionInfo(string Position)
 {
     PositionBasicInfo t = new PositionBasicInfo();
     t = PositionBasicDataSet.Find((x) => { return x.isOpen && x.Position == Position; });
     return t;
 }