Exemple #1
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void IbCreationDataClick(object sender, ImageClickEventArgs e)
 {
     if (new Guid(RCB_Warehouse.SelectedValue).Equals(Guid.Empty))
     {
         RAM.Alert("请选择仓库!");
         return;
     }
     if (!string.IsNullOrWhiteSpace(RCB_State.SelectedValue))
     {
         State = Convert.ToInt32(RCB_State.SelectedValue);
     }
     if (!string.IsNullOrWhiteSpace(RCB_Personnel.SelectedValue))
     {
         PersonnelId = new Guid(RCB_Personnel.SelectedValue);
     }
     if (!string.IsNullOrWhiteSpace(RCB_Company.SelectedValue))
     {
         CompanyId = new Guid(RCB_Company.SelectedValue);
     }
     if (!string.IsNullOrWhiteSpace(RCB_SaleFiliale.SelectedValue))
     {
         FilialeId = new Guid(RCB_SaleFiliale.SelectedValue);
     }
     GoodsNameOrCode = RTB_GoodsNameOrCode.Text.Trim();
     GridGoodsStock.Rebind();
 }
Exemple #2
0
 /// <summary>商品分类树选择事件
 /// </summary>
 protected void TvGoodsClass_NodeClick(object sender, RadTreeNodeEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Node.Value))
     {
         GoodsClassId = new Guid(e.Node.Value);
         if (new Guid(RCB_Warehouse.SelectedValue).Equals(Guid.Empty))
         {
             RAM.Alert("请选择仓库!");
             return;
         }
         GridGoodsStock.Rebind();
     }
 }
 /// <summary>商品分类树点击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void TvGoodsClass_NodeClick(object sender, RadTreeNodeEventArgs e)
 {
     SearchText = null;
     if (!string.IsNullOrEmpty(e.Node.Value))
     {
         GoodsClassId = new Guid(e.Node.Value);
         WarehouseId  = string.IsNullOrEmpty(RCB_Warehouse.SelectedValue) ? Guid.Empty : new Guid(RCB_Warehouse.SelectedValue);
         GridGoodsStock.Rebind();
     }
     else
     {
         GoodsClassId = Guid.Empty;
     }
 }
 /// <summary>搜索
 /// </summary>
 /// <param name="source"></param>
 /// <param name="e"></param>
 protected void GridGoodsStock_ItemCommand(object source, GridCommandEventArgs e)
 {
     if (!(e.Item is GridDataItem) && !(e.Item is GridCommandItem))
     {
         return;
     }
     if (e.CommandName == "Search")
     {
         var cs = (CommonEnterSearchControl)e.Item.FindControl("CommonSearch1");
         SearchText  = cs.SearchText;
         WarehouseId = string.IsNullOrEmpty(RCB_Warehouse.SelectedValue) ? Guid.Empty : new Guid(RCB_Warehouse.SelectedValue);
         var rcbCompanyList = e.Item.FindControl("RCB_Company") as RadComboBox;
         if (rcbCompanyList != null)
         {
             CompanyId = new Guid(rcbCompanyList.SelectedValue);
         }
         GridGoodsStock.Rebind();
     }
 }