예제 #1
0
        //
        //窗体初始化
        //
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // DataSet temds =  PressMaterialList(_WTT_MaterialList );
            dgv_Source.ItemsSource = MaterialList.Tables[0].DefaultView;

            //加载站别
            Maticsoft.BLL.Workstation _M_Workstation = new Maticsoft.BLL.Workstation();
            cmb_Workstation_Receive.ItemsSource = _M_Workstation.GetListModel("");
            txb_OrderID.Text = OrderID;
        }
예제 #2
0
        //
        //窗体载入事件
        //
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            List <string> PrivilegeList = new List <string>();

            PrivilegeList.Add("系统管理员");
            PrivilegeList.Add("经理");
            PrivilegeList.Add("主管");
            PrivilegeList.Add("工程师");
            PrivilegeList.Add("助理");
            PrivilegeList.Add("组长");
            PrivilegeList.Add("员工");

            cmb_Workstation.ItemsSource = _M_Workstation.GetListModel("");
            cmb_Privilege.ItemsSource   = PrivilegeList;
            dgv_Source.ItemsSource      = _M_User.GetModelList("");
        }