public SysCompanyQuery(string depttype)
        {
            InitializeComponent();
            _export.Visibility = Visibility.Hidden;
            this.dept_type     = depttype;
            ProvinceCityTable  = PubClass.ProvinceCityTable;
            DataRow[] rows = ProvinceCityTable.Select("pid = '0001'");
            user_flag_tier = PubClass.userInfo.FlagTier;

            //检测单位
            ComboboxTool.InitComboboxSource(_detect_dept, operationContract.ExecuteProUserDept(PubClass.userInfo.ID), "cxtj");
            //来源产地
            ComboboxTool.InitComboboxSource(_province1, rows, "cxtj");
            _province1.SelectionChanged += new SelectionChangedEventHandler(_province1_SelectionChanged);
        }
示例#2
0
        public SysReviewInfoProduce()
        {
            InitializeComponent();
            //初始化查询条件
            reportDate_kssj.SelectedDate = DateTime.Now.AddDays(-1);
            reportDate_jssj.SelectedDate = DateTime.Now;
            //检测单位
            ComboboxTool.InitComboboxSource(_detect_dept, operationContract.ExecuteProUserDept(PubClass.userInfo.ID), "cxtj");
            //检测项目
            ComboboxTool.InitComboboxSource(_detect_item, operationContract.GetComboDetItemProduce(), "cxtj");

            MyColumns.Add("orderid", new MyColumn("orderid", "检测单编号")
            {
                BShow = true, Width = 8
            });
            MyColumns.Add("detecttypename", new MyColumn("detecttypename", "信息来源")
            {
                BShow = true, Width = 8
            });
            MyColumns.Add("detectdate", new MyColumn("detectdate", "检测时间")
            {
                BShow = true, Width = 18
            });
            MyColumns.Add("partname", new MyColumn("partname", "检测单位")
            {
                BShow = true, Width = 16
            });
            MyColumns.Add("itemname", new MyColumn("itemname", "检测项目")
            {
                BShow = true, Width = 10
            });
            MyColumns.Add("objectname", new MyColumn("objectname", "样品名称")
            {
                BShow = true, Width = 8
            });
            MyColumns.Add("reagentname", new MyColumn("reagentname", "检测方法")
            {
                BShow = true, Width = 10
            });
            MyColumns.Add("detectvalue", new MyColumn("detectvalue", "检测值")
            {
                BShow = true, Width = 8
            });
            MyColumns.Add("resultname", new MyColumn("resultname", "检测结果")
            {
                BShow = true, Width = 8
            });
            MyColumns.Add("detectusername", new MyColumn("detectusername", "检测师")
            {
                BShow = true, Width = 10
            });
            MyColumns.Add("areaname", new MyColumn("areaname", "来源产地")
            {
                BShow = false
            });
            MyColumns.Add("companyname", new MyColumn("companyname", "被检单位")
            {
                BShow = true, Width = 16
            });
            MyColumns.Add("reviewflagname", new MyColumn("reviewflagname", "是否复核")
            {
                BShow = false
            });
            MyColumns.Add("sum_num", new MyColumn("sum_num", "总行数")
            {
                BShow = false
            });

            _tableview.MyColumns       = MyColumns;
            _tableview.BShowState      = true;
            _tableview.StateRowEnvent += new UcTableOperableView_NoTitle.StateRowEventHandler(_tableview_StateRowEnvent);
        }