Example #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            frmSelectTimePeriodManagement fm = new frmSelectTimePeriodManagement();

            fm.Show();
            this.Hide();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            frmSelectTimePeriodManagement fm = frmSelectTimePeriodManagement.GetInstance();

            fm.Show();
            this.Close();
        }
Example #3
0
        private void AddSelectTimePeriod(List <SelectTimePeriodEntityTemp> list)
        {
            TokenResultEntity getToken = provide.GetToken();

            if (getToken.Code != 0)
            {
                MessageBox.Show("获取Token失败, 错误信息: " + getToken.ErrMsg);
                return;
            }

            BaseResultEntity addSelectTimePeriod = provide.AddSelectTimePeriod(list, projectgroupId);

            if (addSelectTimePeriod.Code != 0)
            {
                MessageBox.Show("创建选房时间段失败, 错误信息: " + addSelectTimePeriod.ErrMsg);
                return;
            }
            else
            {
                MessageBox.Show("创建成功!");
                frmSelectTimePeriodManagement fm = frmSelectTimePeriodManagement.GetInstance();
                fm.GetProjectGroupList();
                this.Close();
            }
        }
Example #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            frmSelectTimePeriodManagement fm = frmSelectTimePeriodManagement.GetInstance();

            fm.GetProjectGroupList();
            this.Close();
        }
Example #5
0
        private void InitForm()
        {
            frmSelectTimePeriodManagement fm = new frmSelectTimePeriodManagement();

            projectgroupId = fm.projectgroupId;
            label1.Text    = fm.desc;
        }
 public static frmSelectTimePeriodManagement GetInstance()
 {
     if (frmseTimePeriodMgt == null)
     {
         frmseTimePeriodMgt = new frmSelectTimePeriodManagement();
     }
     return(frmseTimePeriodMgt);
 }