public SysNewDetectAnimalQuery()
        {
            InitializeComponent();
            ProvinceCityTable = PubClass.ProvinceCityTable;
            DataRow[] rows = ProvinceCityTable.Select("pid = '0001'");

            //画面初始化-检测单列表画面
            dtpStartDate.SelectedDate = DateTime.Now.AddDays(-1);
            dtpEndDate.SelectedDate   = DateTime.Now;
            ComboboxTool.InitComboboxSource(_source_company1, operationContract.ExecuteProUserCompany(userId, ""), "cxtj");
            ComboboxTool.InitComboboxSource(_detect_station, operationContract.ExecuteProDetUser(userId), "cxtj");

            ComboboxTool.InitComboboxSource(_detect_item1, operationContract.GetComboDetItemAnimal(), "cxtj");

            ComboboxTool.InitComboboxSource(_detect_object1, operationContract.GetComboDetObjectAnimal(), "cxtj");
            ComboboxTool.InitComboboxSource(_detect_result1, operationContract.GetComboDetResult(), "cxtj");
            ComboboxTool.InitComboboxSource(_detect_person1, operationContract.ExecuteProDetUser(userId), "cxtj");

            ComboboxTool.InitComboboxSource(_detect_method, operationContract.GetComboDetReagentAnimal(), "cxtj");
            ComboboxTool.InitComboboxSource(_detect_type, operationContract.GetComboDetSource(), "cxtj");

            ComboboxTool.InitComboboxSource(_province1, rows, "cxtj");
            _province1.SelectionChanged += new SelectionChangedEventHandler(_province1_SelectionChanged);
            //20150707检测师改为连动(受监测站点影响)
            _detect_station.SelectionChanged += new SelectionChangedEventHandler(_detect_station_SelectionChanged);

            SetColumns();
        }
示例#2
0
        public SysUserSignIn()
        {
            InitializeComponent();

            //画面初始化-检测单列表画面
            dtpStartDate.SelectedDate = DateTime.Now.AddDays(-1);
            dtpEndDate.SelectedDate   = DateTime.Now;



            //检测站点
            DataTable dtCxtj = operationContract.ExecuteProCxtj(userId);

            ComboboxTool.InitComboboxSource(_detect_station, dtCxtj, "cxtj");

            _detect_station.SelectionChanged += new SelectionChangedEventHandler(_detect_station_SelectionChanged);
            DataTable dtDetuser = operationContract.ExecuteProDetUser(userId);

            ComboboxTool.InitComboboxSource(_detect_person1, dtDetuser, "cxtj");

            SetColumns();
        }