Exemplo n.º 1
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PrintManager_Load(object sender, EventArgs e)
        {
            DataTable dt = AsmPlan_BLL.GetPlanObjectByConditionToPrint();

            LoadSource(dt);
            dic_year  = SetYearRule();
            dic_month = SetMonthRule();

            lb_LINE_ID.DataSource    = AsmLine_BLL.GetAllLines();
            lb_LINE_ID.DisplayMember = "NAME";
            lb_LINE_ID.ValueMember   = "ID";
            lb_LINE_ID.SelectedIndex = -1;
        }
Exemplo n.º 2
0
 public void RefishLineAndProduction()
 {
     productionDt = null;
     productionDt = AsmProduction_BLL.GetAllAsmProduction();
     CB_ProductionType.DataSource    = productionDt;
     CB_ProductionType.DisplayMember = "PRODUCTION_VR";
     CB_ProductionType.ValueMember   = "PRODUCTION_ID";
     CB_ProductionType.SelectedItem  = null;
     stationDt             = null;
     stationDt             = AsmLine_BLL.GetAllLines();
     CB_Line.DataSource    = stationDt;
     CB_Line.DisplayMember = "NAME";
     CB_Line.ValueMember   = "ID";
     CB_Line.SelectedItem  = null;
 }