// 生成报表 protected void Ib_CreationData_Click(object sender, ImageClickEventArgs e) { WarehouseId = string.IsNullOrEmpty(RCB_Warehouse.SelectedValue) ? Guid.Empty : new Guid(RCB_Warehouse.SelectedValue); CompanyId = string.IsNullOrEmpty(RCB_Company.SelectedValue) ? Guid.Empty : new Guid(RCB_Company.SelectedValue); KeyWords = TextBoxKeys.Text; RGGoodsDemand.Rebind(); }
// 生成采购单 protected void Ib_CreatePurchase_Click(object sender, EventArgs e) { if (RDP_ArrivalTime.SelectedDate == null) { RAM.Alert("请选择到货日期"); return; } if (!StockDeclareDtos.Any()) { RAM.Alert("暂时没有要进货的数据!"); return; } var failMsg = new StringBuilder(); StockDeclareManager.WriteInstance.BuilderPurchasing(StockDeclareDtos, null, WarehouseId, RDP_ArrivalTime.SelectedDate, CurrentSession.Personnel.Get().RealName, ref failMsg); RAM.Alert(!string.IsNullOrEmpty(failMsg.ToString().Trim()) ? failMsg.ToString() : "采购单生成成功!"); RGGoodsDemand.Rebind(); }