修改 材料管理仓库下拉统一从入库单中入库仓库取
This commit is contained in:
parent
94ac0da919
commit
af5341bb99
|
|
@ -605,7 +605,14 @@ namespace BLL
|
|||
return cusBillCode;
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<string, string> GetWarehouseCode(string projectId)
|
||||
{
|
||||
var q = (from x in Funs.DB.Tw_InOutPlanMaster
|
||||
where x.ProjectId == projectId &&
|
||||
x.InOutType == (int)TwConst.InOutType.入库
|
||||
select x.WarehouseCode).Distinct().ToDictionary(x => x, x => x);
|
||||
return q;
|
||||
}
|
||||
public static string GetDataInCusBillCode(string projectid, string unitcode, string typeString, string unitWorkCode = "", string Category = "")
|
||||
{
|
||||
if (typeString == TwConst.TypeInt.其他入库.ToString())
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ namespace FineUIPro.Web.CLGL
|
|||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
|
|
|
|||
|
|
@ -71,9 +71,9 @@ namespace FineUIPro.Web.CLGL
|
|||
private void InitDrpList()
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWarehouse);
|
||||
drpTypeInt.DataTextField = "Key";
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ namespace FineUIPro.Web.CLGL
|
|||
private void InitDrpList()
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWarehouse);
|
||||
drpTypeInt.DataTextField = "Key";
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ namespace FineUIPro.Web.CLGL
|
|||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWarehouse);
|
||||
// 绑定表格
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ namespace FineUIPro.Web.CLGL
|
|||
|
||||
private void InitDrpList()
|
||||
{
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWarehouse);
|
||||
drpTypeInt.DataTextField = "Key";
|
||||
|
|
|
|||
|
|
@ -85,9 +85,9 @@ namespace FineUIPro.Web.CLGL
|
|||
private void InitDrpList()
|
||||
{
|
||||
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
|
||||
string[] typeIntArr = { TwConst.TypeInt.散件出库.ToString(), TwConst.TypeInt.其他出库.ToString() };
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ namespace FineUIPro.Web.CLGL
|
|||
|
||||
private void InitDrpList()
|
||||
{
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataTextField = "Key";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId);
|
||||
drpWarehouse.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWarehouse);
|
||||
drpTypeInt.DataTextField = "Key";
|
||||
|
|
|
|||
Loading…
Reference in New Issue