diff --git a/Controller/SCP_WMS_CONTROLLER.cs b/Controller/SCP_WMS_CONTROLLER.cs index cddace8..a5d4117 100644 --- a/Controller/SCP_WMS_CONTROLLER.cs +++ b/Controller/SCP_WMS_CONTROLLER.cs @@ -208,6 +208,10 @@ namespace CK.SCP.Controller { q = q.Where(p => p.PartCode.Contains(p_entity.PartCode)); } + if (!string.IsNullOrEmpty(p_entity.VendId)) + { + q = q.Where(p => p.VendId.Contains(p_entity.VendId)); + } if (p_entity.UserInVendIds != null && p_entity.UserInVendIds.Count > 0) { q = q.Where(p => p_entity.UserInVendIds.Contains(p.VendId)); @@ -283,6 +287,10 @@ namespace CK.SCP.Controller { q = q.Where(p => p.PartCode.Contains(p_entity.PartCode)); } + if (!string.IsNullOrEmpty(p_entity.VendId)) + { + q = q.Where(p => p.VendId.Contains(p_entity.VendId)); + } if (p_entity.UserInVendIds != null && p_entity.UserInVendIds.Count > 0) { q = q.Where(p => p_entity.UserInVendIds.Contains(p.VendId)); diff --git a/SCP/Views/SupplierData/SCP_STOCK.aspx b/SCP/Views/SupplierData/SCP_STOCK.aspx index 5987b5b..098c571 100644 --- a/SCP/Views/SupplierData/SCP_STOCK.aspx +++ b/SCP/Views/SupplierData/SCP_STOCK.aspx @@ -16,9 +16,9 @@ - - - + + + diff --git a/SCP/Views/SupplierData/SCP_STOCK.aspx.cs b/SCP/Views/SupplierData/SCP_STOCK.aspx.cs index b20608d..5967270 100644 --- a/SCP/Views/SupplierData/SCP_STOCK.aspx.cs +++ b/SCP/Views/SupplierData/SCP_STOCK.aspx.cs @@ -37,6 +37,7 @@ namespace SCP.Views.SupplierData { VIEW_STOCK_VEND _entity = new VIEW_STOCK_VEND(); _entity.PartCode = txtPartcode.Text; + _entity.VendId = txtVendId.Text; _entity.UserInVendIds = CurrentUser.VenderList; SCP_WMS_CONTROLLER.Get_VIEW_STOCK_DETAIL(_entity, (_ret) => { diff --git a/SCP/Views/SupplierData/SCP_STOCK.aspx.designer.cs b/SCP/Views/SupplierData/SCP_STOCK.aspx.designer.cs index c9066be..8f3328b 100644 --- a/SCP/Views/SupplierData/SCP_STOCK.aspx.designer.cs +++ b/SCP/Views/SupplierData/SCP_STOCK.aspx.designer.cs @@ -51,22 +51,22 @@ namespace SCP.Views.SupplierData protected global::FineUI.Toolbar Toolbar2; /// - /// Label2 控件。 + /// txtPartcode 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.Label Label2; + protected global::FineUI.TextBox txtPartcode; /// - /// txtPartcode 控件。 + /// txtVendId 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.TextBox txtPartcode; + protected global::FineUI.TextBox txtVendId; /// /// btnSearch 控件。 diff --git a/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx b/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx index 675663f..64fa60e 100644 --- a/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx +++ b/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx @@ -16,16 +16,13 @@ - - - + + + - - - - - + + diff --git a/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.cs b/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.cs index f878670..60ef6b1 100644 --- a/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.cs +++ b/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.cs @@ -43,6 +43,7 @@ namespace SCP.Views.SupplierData { VIEW_STOCK_QTY _entity = new VIEW_STOCK_QTY(); _entity.PartCode = txtPartcode.Text; + _entity.VendId = txtVendId.Text; _entity.UserInVendIds = CurrentUser.VenderList; if (DatePicker1.SelectedDate != null) { diff --git a/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.designer.cs b/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.designer.cs index 6c00cf2..b914ab3 100644 --- a/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.designer.cs +++ b/SCP/Views/SupplierData/SCP_STOCK_DETAIL.aspx.designer.cs @@ -50,15 +50,6 @@ namespace SCP.Views.SupplierData /// protected global::FineUI.Toolbar Toolbar2; - /// - /// Label2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Label Label2; - /// /// txtPartcode 控件。 /// @@ -69,22 +60,22 @@ namespace SCP.Views.SupplierData protected global::FineUI.TextBox txtPartcode; /// - /// ToolbarSeparator2 控件。 + /// txtVendId 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.ToolbarSeparator ToolbarSeparator2; + protected global::FineUI.TextBox txtVendId; /// - /// Label3 控件。 + /// ToolbarSeparator2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.Label Label3; + protected global::FineUI.ToolbarSeparator ToolbarSeparator2; /// /// DatePicker1 控件。 diff --git a/SCP/Views/沈阳金杯/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs b/SCP/Views/沈阳金杯/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs index fcb770d..6095dcd 100644 --- a/SCP/Views/沈阳金杯/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs +++ b/SCP/Views/沈阳金杯/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs @@ -44,6 +44,16 @@ namespace SCP.Views.沈阳金杯.WarehouseData private void SetRoleRule() { IsPriceVisible(Grid1, "要货日期"); + if (CurrentUser.RoleList.Contains("修改价格")) + { + for (int i = 0, count = Grid1.Rows.Count; i < count; i++) + { + object[] rowDataKeys = Grid1.DataKeys[i]; + GridRow row = Grid1.Rows[i]; + var txtPrice = (System.Web.UI.WebControls.TextBox)row.FindControl("txtPrice"); + txtPrice.Enabled = true; + } + } } private void GetInvoice() { @@ -84,16 +94,7 @@ namespace SCP.Views.沈阳金杯.WarehouseData this.btnCheckSuccess.Hidden = true; //Visible = false; } } - if (CurrentUser.RoleList.Contains("修改价格")) - { - for (int i = 0, count = Grid1.Rows.Count; i < count; i++) - { - object[] rowDataKeys = Grid1.DataKeys[i]; - GridRow row = Grid1.Rows[i]; - var txtPrice = (System.Web.UI.WebControls.TextBox)row.FindControl("txtPrice"); - txtPrice.Enabled = true; - } - } + } }); this.btnEdit.Enabled = true; @@ -270,16 +271,19 @@ namespace SCP.Views.沈阳金杯.WarehouseData { Grid1.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); BindData(); + SetRoleRule(); } protected void Grid_V_TB_INVOICE_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) { BindData(); + SetRoleRule(); } protected void Grid1_Sort(object sender, GridSortEventArgs e) { Grid1.SortDirection = e.SortDirection; Grid1.SortField = e.SortField; BindData(); + SetRoleRule(); } protected void Window1_Close(object sender, WindowCloseEventArgs e) { diff --git a/SCP/default.aspx b/SCP/default.aspx index 9af5c3e..beef335 100644 --- a/SCP/default.aspx +++ b/SCP/default.aspx @@ -111,10 +111,10 @@ for (var i = 0; obj.options.length; i++) { - if ('QDVALEO' == obj.options[i].value) { + if ('JZ1' == obj.options[i].value) { obj.options[i].selected = true; _factory = document.getElementById(_factoryValue); - _factory.value = 'QDVALEO'; + _factory.value = 'JZ1'; } } }