Beispiel #1
0
        public Form_ShopVerison()
        {
            InitializeComponent();


            ShopID = GlobalParams.ShopID;
            if (ShopID < 0)
            {
                MessageBox.Show("您不属于任何店铺,请联系系统管理员分配您的店铺所属!", "错误!", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
                this.Close();
            }
            CarSummery_Client = (CarSummeryClient)ClientFactory.GetClient(ClientType.Type.CarSummery);
            Brand_Client      = (BrandClient)ClientFactory.GetClient(ClientType.Type.Brand);
            Type_Client       = (TypeClient)ClientFactory.GetClient(ClientType.Type.Type);
            Version_Client    = (VersionClient)ClientFactory.GetClient(ClientType.Type.Version);

            List_Brand       = Brand_Client.SelectAllBrands().ToList();
            List_Type        = Type_Client.SelectAllTypes().ToList();
            List_VersionInfo = CarSummery_Client.SelectAllCar().ToList();
            Mark             = false;
            LB_VersionBind();
            CB_BrandBind();
            CB_TypeBind();
            BT_UpdateVersion.Visible = false;
        }
Beispiel #2
0
 public Form_OrderManage()
 {
     InitializeComponent();
     UserManager_Client  = (UserManagerClient)ClientFactory.GetClient(ClientType.Type.UserManager);
     Type_Client         = (TypeClient)ClientFactory.GetClient(ClientType.Type.Type);
     Action_Client       = (ActionClient)ClientFactory.GetClient(ClientType.Type.Action);
     Version_Client      = (VersionClient)ClientFactory.GetClient(ClientType.Type.Version);
     Order_Client        = (OrderClient)ClientFactory.GetClient(ClientType.Type.Order);
     OrderSummery_Client = (OrderSummeryClient)ClientFactory.GetClient(ClientType.Type.OrderSummery);
     ShopID = GlobalParams.ShopID;
     if (ShopID < 0)
     {
         MessageBox.Show("您不属于任何店铺,请联系系统管理员分配您的店铺所属!", "错误!", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
         this.Close();
     }
     else
     {
         List_Version = Version_Client.SelectAllVersions().Where(P => P.Version_Shop == ShopID).ToList();
     }
     List_Action           = Action_Client.SelectAllActions().ToList();
     List_Type             = Type_Client.SelectAllTypes().ToList();
     List_UserEX           = UserManager_Client.SelectUserEXInfo_All().ToList();
     List_User             = UserManager_Client.SelectUserInfo_All().ToList();
     PL_NewUser.Visible    = false;
     PL_UserResult.Visible = false;
     Bind_Action();
     Bind_Type();
     Bind_Version();
 }
Beispiel #3
0
 public Form_VersionManage()
 {
     InitializeComponent();
     Mark = false;
     CarSummery_Client = (CarSummeryClient)ClientFactory.GetClient(ClientType.Type.CarSummery);
     Province_Client   = (ProvinceClient)ClientFactory.GetClient(ClientType.Type.Province);
     City_Client       = (CityClient)ClientFactory.GetClient(ClientType.Type.City);
     Shop_Client       = (ShopClient)ClientFactory.GetClient(ClientType.Type.Shop);
     Brand_Client      = (BrandClient)ClientFactory.GetClient(ClientType.Type.Brand);
     Type_Client       = (TypeClient)ClientFactory.GetClient(ClientType.Type.Type);
     Version_Client    = (VersionClient)ClientFactory.GetClient(ClientType.Type.Version);
     List_VersionInfo  = CarSummery_Client.SelectAllCar().ToList();
     List_Car_Province = Province_Client.SelectAllProvinces().ToList();
     List_City         = City_Client.SelectAllCitys().ToList();
     List_Shop         = Shop_Client.SelectAllShops().ToList();
     List_Brand        = Brand_Client.SelectAllBrands().ToList();
     List_Type         = Type_Client.SelectAllTypes().ToList();
     CB_ProviceBind();
     CB_BrandBind();
     CB_TypeBind();
     BT_UpdateVersion.Visible = false;
 }
Beispiel #4
0
 /// <summary>
 /// 绑定类型事件
 /// </summary>
 private void Bind_Type()
 {
     List_Type          = Type_Client.SelectAllTypes().ToList();
     LB_Type.DataSource = List_Type.Select(P => P.Type_Name).ToList();
 }