Пример #1
0
        void LoadData()
        {
            SysManager.ReCalculation(_ProjectID);

            var list = DAL.CommonDAL.GetProjectItemList(_ProjectID).OrderBy(s => s.ID).ToList();

            this.dataGridView1.DataSource = list;
        }
Пример #2
0
 private void ConfigCenter_Load(object sender, EventArgs e)
 {
     Model.SysConfig model = SysManager.ReadConfig();
     txtHLGS.Text      = model.HanLiang;
     txtFCPoint.Text   = model.FangChaPoint.ToString();
     txtHLPoint.Text   = model.HanLiangPoint.ToString();
     txtPJHLPoint.Text = model.PingJunHLPoint.ToString();
 }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     Model.SysConfig model = new Model.SysConfig();
     try
     {
         model.HanLiang       = txtHLGS.Text;
         model.FangChaPoint   = Convert.ToInt32(txtFCPoint.Text);
         model.HanLiangPoint  = Convert.ToInt32(txtHLPoint.Text);
         model.PingJunHLPoint = Convert.ToInt32(txtPJHLPoint.Text);
     }catch (Exception)
     {
         Common.MessageUtil.ShowTips("输入格式不正确");
         return;
     }
     SysManager.WriteConfig(model);
     Common.MessageUtil.ShowTips("设置成功!");
 }