コード例 #1
0
        public Item(CreationItemsRecord cir,ComboBox.ObjectCollection cboc)
        {
            InitializeComponent();
            this.Text = "項目";
            inpSchoolYear.Value = int.Parse(School.DefaultSchoolYear);
            inpSemester.Value = int.Parse(School.DefaultSemester);
            foreach (string item in cboc)
            {
                inpOrganizers.Items.Add(item);
            }
            if (cir.UID != null)
            {
                _cir = cir;
                inpRegistStartTime.Value = _cir.RegistStartTime;
                inpRegistEndTime.Value = _cir.RegistEndTime;
                inpSchoolYear.Value = _cir.SchoolYear;
                inpSemester.Value = _cir.Semester;
                inpOrganizers.Text = _cir.Organizers  ;
                inpOccurDate.Value = _cir.OccurDate;

                inpLocation.Text = _cir.Location ;
                inpEpectedHours.Value = double.Parse(""+_cir.ExpectedHours) ;

                 inpParticipateLimit.Value = _cir.ParticipateLimit;
                inpReason.Text = _cir.Reason ;
                inpRemark.Text= _cir.Remark;
            }
            if (_cir.IsApproved)
            {
                inpRegistStartTime.Enabled = false;
                inpRegistEndTime.Enabled = false;
                inpSchoolYear.Enabled = false;
                inpSemester.Enabled = false;
                inpOrganizers.Enabled = false;
                inpOccurDate.Enabled = false;

                inpLocation.Enabled = false;
                inpEpectedHours.Enabled = false;

                inpParticipateLimit.Enabled = false;
                inpReason.Enabled = false;
                inpRemark.Enabled = false;
                btnSave.Enabled = false;
            }
        }
コード例 #2
0
        public Item(CreationItemsRecord cir, ComboBox.ObjectCollection cboc)
        {
            InitializeComponent();
            this.Text           = "項目";
            inpSchoolYear.Value = int.Parse(School.DefaultSchoolYear);
            inpSemester.Value   = int.Parse(School.DefaultSemester);
            foreach (string item in cboc)
            {
                inpOrganizers.Items.Add(item);
            }
            if (cir.UID != null)
            {
                _cir = cir;
                inpRegistStartTime.Value = _cir.RegistStartTime;
                inpRegistEndTime.Value   = _cir.RegistEndTime;
                inpSchoolYear.Value      = _cir.SchoolYear;
                inpSemester.Value        = _cir.Semester;
                inpOrganizers.Text       = _cir.Organizers;
                inpOccurDate.Value       = _cir.OccurDate;

                inpLocation.Text      = _cir.Location;
                inpEpectedHours.Value = double.Parse("" + _cir.ExpectedHours);

                inpParticipateLimit.Value = _cir.ParticipateLimit;
                inpReason.Text            = _cir.Reason;
                inpRemark.Text            = _cir.Remark;
            }
            if (_cir.IsApproved)
            {
                inpRegistStartTime.Enabled = false;
                inpRegistEndTime.Enabled   = false;
                inpSchoolYear.Enabled      = false;
                inpSemester.Enabled        = false;
                inpOrganizers.Enabled      = false;
                inpOccurDate.Enabled       = false;

                inpLocation.Enabled     = false;
                inpEpectedHours.Enabled = false;

                inpParticipateLimit.Enabled = false;
                inpReason.Enabled           = false;
                inpRemark.Enabled           = false;
                btnSave.Enabled             = false;
            }
        }
 public AuthorizeForm(CreationItemsRecord cir)
 {
     InitializeComponent();
     _cir = cir;
 }
コード例 #4
0
 public ApprovedForm(CreationItemsRecord cir)
 {
     InitializeComponent();
     _cir = cir;
 }
 public ApprovedForm(CreationItemsRecord cir)
 {
     InitializeComponent();
     _cir = cir;
 }
コード例 #6
0
 public AuthorizeForm(CreationItemsRecord cir)
 {
     InitializeComponent();
     _cir = cir;
 }