Inheritance: DevExpress.XtraEditors.XtraUserControl
コード例 #1
0
        private void menuMove_Click(object sender, EventArgs e)
        {
            List <ProductInfo> warelst = _productView.GetCheckList <ProductInfo>();

            if (warelst != null && warelst.Count > 0)
            {
                UiSelectType ucType = new UiSelectType();
                ShowPopForm(ucType, "请选择迁移后分类");
                if (ucType.WareType != null)
                {
                    foreach (var item in warelst)
                    {
                        DBHelper.GetInstance().WareTypeUpdate(item.ProductID, ucType.WareType);
                    }
                    MessageBox.Show("迁移商品完成!", "系统提示");
                }
                if (btnSearch.Tag != null)
                {
                    string ty = btnSearch.Tag.ToString();
                    RefreshGrid(ty);
                }
                else
                {
                    RefreshGrid();
                }
            }
            else
            {
                MessageBox.Show("请选择/勾选需要迁移的商品!", "系统提示");
            }
        }
コード例 #2
0
ファイル: FrmMain.cs プロジェクト: hanksoft/KillJD
 private void menuMove_Click(object sender, EventArgs e)
 {
     List<ProductInfo> warelst = _productView.GetCheckList<ProductInfo>();
     if (warelst != null && warelst.Count > 0)
     {
         UiSelectType ucType = new UiSelectType();
         ShowPopForm(ucType, "请选择迁移后分类");
         if (ucType.WareType != null)
         {
             foreach (var item in warelst)
             {
                 DBHelper.GetInstance().WareTypeUpdate(item.ProductID, ucType.WareType);
             }
             MessageBox.Show("迁移商品完成!", "系统提示");
         }
         if (btnSearch.Tag != null)
         {
             string ty = btnSearch.Tag.ToString();
             RefreshGrid(ty);
         }
         else
         {
             RefreshGrid();
         }
     }
     else
     {
         MessageBox.Show("请选择/勾选需要迁移的商品!", "系统提示");
     }
 }