예제 #1
0
        public FormLine()
        {
            InitializeComponent();
            State = ClassLibrary.JFormState.Insert;
            SetDefalut();
            JLineTypes MC = new JLineTypes();

            MC.SetComboBox(JcmbLineType);
        }
예제 #2
0
        private void Load1(int PCode)
        {
            JLine objLine = new JLine();

            objLine.GetData(PCode);
            txtLineName.Text   = objLine.LineName;
            txtLineNumber.Text = objLine.LineNumber.ToString();

            //JcmbLineType.SelectedValue = objLine.LineType;
            JLineTypes MC = new JLineTypes();

            MC.SetComboBox(JcmbLineType, objLine.LineType);
            JCmbZoneCode.SelectedValue = objLine.ZoneCode;
            JcmbFleet.SelectedValue    = objLine.Fleet;

            checkState.Checked  = objLine.Status;
            checkRotate.Checked = objLine.Rotate;
        }