예제 #1
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();
        }
예제 #2
0
        public SysReviewLog(string depttype)
        {
            InitializeComponent();
            this.dept_type = depttype;
            user_flag_tier = PubClass.userInfo.FlagTier;

            //初始化查询条件
            reportDate_kssj.SelectedDate = DateTime.Now.AddDays(-1);
            reportDate_jssj.SelectedDate = DateTime.Now;
            //检测单位
            ComboboxTool.InitComboboxSource(_detect_dept, operationContract.ExecuteProCxtj(PubClass.userInfo.ID), "cxtj");
            //检测项目
            switch (dept_type)
            {
            case "0": ComboboxTool.InitComboboxSource(_detect_item, operationContract.GetComboDetItemProduce(), "cxtj");
                break;

            case "1": ComboboxTool.InitComboboxSource(_detect_item, operationContract.GetComboDetItemFishery(), "cxtj");
                break;

            case "2": ComboboxTool.InitComboboxSource(_detect_item, operationContract.GetComboDetItemAnimal(), "cxtj");
                break;

            default: break;
            }

            MyColumns.Add("orderid", new MyColumn("orderid", "检测单编号")
            {
                BShow = true, Width = 10
            });
            MyColumns.Add("itemname", new MyColumn("itemname", "检测项目")
            {
                BShow = true, Width = 14
            });
            MyColumns.Add("reviewdate", new MyColumn("reviewdate", "复核检测时间")
            {
                BShow = true, Width = 18
            });
            MyColumns.Add("reviewreagentname", new MyColumn("reviewreagentname", "复核检测方法")
            {
                BShow = true, Width = 14
            });
            MyColumns.Add("reviewresultname", new MyColumn("reviewresultname", "复核检测结果")
            {
                BShow = true, Width = 14
            });
            MyColumns.Add("reviewusername", new MyColumn("reviewusername", "复核检测师")
            {
                BShow = true, Width = 14
            });
            MyColumns.Add("reviewreason", new MyColumn("reviewreason", "复核原因说明")
            {
                BShow = true, Width = 22
            });
            MyColumns.Add("sum_num", new MyColumn("sum_num", "总行数")
            {
                BShow = false
            });

            _tableview.MyColumns         = MyColumns;
            _tableview.BShowDetails      = true;
            _tableview.DetailsRowEnvent += new UcTableOperableView_NoTitle.DetailsRowEventHandler(_tableview_DetailsRowEnvent);
        }