light seeds

This commit is contained in:
bobwang 2024-05-24 19:11:48 +08:00
parent 6ac17ba3b6
commit 2c4f788bba
13 changed files with 116 additions and 7 deletions

View File

@ -814,7 +814,21 @@ namespace DeiNiu.wms.Data.Model
break;
case 2500://
_strSql = " select * from [v_stockSeedsDeskLight] where 1=1 " +
" and flowno =@flowno" +
" and deskId= @deskId" +
" and (barcode=@barcode /* or goodsId=@barcode */) ";
sqlCmd.Parameters.AddWithValue("@deskId", mObj.CmdParameters[0]);
sqlCmd.Parameters.AddWithValue("@flowno", mObj.CmdParameters[1]);
sqlCmd.Parameters.AddWithValue("@barcode", mObj.CmdParameters[2]);
sqlCmd.CommandText = _strSql;
break;
}
sqlCmd.CommandText = _strSql;

View File

@ -368,6 +368,8 @@ namespace DeiNiu.wms.Data.Model
return CustQuery(1801).Tables[0];
}
public DataTable getFlows4SeedsOut()
{
return CustQuery(1900).Tables[0];
@ -434,6 +436,14 @@ namespace DeiNiu.wms.Data.Model
return CustQuery(2220).Tables[0];
}
public DataTable getLightSeeds(int deskId, string flowno, string barcode)
{
cmdParameters[0] = deskId;
cmdParameters[1] = flowno;
cmdParameters[2] = barcode;
return CustQuery(2500).Tables[0];
}
}
}

View File

@ -312,7 +312,7 @@ namespace DeiNiu.Wcf
{
log.Debug(string.Format("Warrning is expiring... IS_ONLINE_RESTRICT: {0}, SYSTEM_VALID_LEFT_DAYS: {1}, SYSTEM_VALID_DATE {2} ",
WmsConstants.IS_ONLINE_RESTRICT, WmsConstants.SYSTEM_VALID_LEFT_DAYS, WmsConstants.SYSTEM_VALID_DATE));
em.extrMsg = String.Format("警告:系统将在{0}天后到期停用, 请及时缴费", WmsConstants.SYSTEM_VALID_LEFT_DAYS);
em.extrMsg = String.Format("警告:系统将在{0}天后到期停用", WmsConstants.SYSTEM_VALID_LEFT_DAYS);
}
// log.Debug("login user " + em.ToString());

View File

@ -757,6 +757,20 @@ namespace DeiNiu.wms.Logical
}
/// <summary>
/// 返回亮灯数据
/// </summary>
/// <param name="deskId"></param>
/// <param name="flowno"></param>
/// <param name="barcode"></param>
/// <param name="userId"></param>
/// <param name="isValid"></param>
/// <returns></returns>
internal DataTable prePareLightSeeds(int deskId, string flowno, string barcode, int userId, bool isValid)
{
return getWmsOutPickPort.getLightSeeds(deskId, flowno, barcode);
}
internal DataTable getLightTasks(string query, int wareHouse, int partion, int lineId, int state,string date, bool isLight)
{
return getWmsOutPickPort.getLightTasks( pareseCondition(query), wareHouse, partion, lineId, state,date, isLight);

View File

@ -200,6 +200,10 @@ namespace DeiNiu.Wcf
[OperationContract]
DataTable lightByJob(int userId,string jobNo,bool isValid);
[OperationContract]
DataTable lightSeeds(int deskId ,string flowno, string barcode, int userId, bool isValid);
[OperationContract]
bool updatePortPickingStatus(int userId,int color, int labId, int address, decimal count);
[OperationContract] int clearJobLightTask(string jobNo);
@ -213,6 +217,8 @@ namespace DeiNiu.Wcf
[OperationContract]
DataTable getLightTasks(string query,int wareHouse, int partion, int lineId, int state, string date, bool isLight);
}

View File

@ -46,7 +46,7 @@
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="false"/>
<!-- 开发调试引用服务时不需要权限拦截
--><AuthenticationBehavior/>
<AuthenticationBehavior/>-->
</behavior>
<behavior name="serviceBehaviorNoAuthor">
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->

View File

@ -621,5 +621,10 @@ namespace DeiNiu.Wcf
{
return lopp.getLightTasks(query,wareHouse, partion, lineId, state,date,isLight);
}
public DataTable lightSeeds(int deskId, string flowno, string barcode, int userId, bool isValid)
{
return lopp.prePareLightSeeds(deskId, flowno, barcode, userId, isValid);
}
}
}

View File

@ -159,15 +159,18 @@ namespace WcfServiceAuthentication
{
return;
}
// LogHelper.debug("1 checkRestrictUsers", string.Format(" checking ..userId {0} , current list size {1}, maxSize {2} ", userId, restrictUsers.Count, WmsConstants.MAX_ONLINE_USERS));
//
if (!AuthenticationInspector.restrictUsers.Contains(userId))
{
if (AuthenticationInspector.restrictUsers.Count >= WmsConstants.MAX_ONLINE_USERS)
{
LogHelper.debug("1 checkRestrictUsers", string.Format(" checking ..userId {0} , current list size {1}, maxSize {2} ", userId, restrictUsers.Count, WmsConstants.MAX_ONLINE_USERS));
LogHelper.debug("checkRestrictUsers", string.Format(" to remove ..userId {0} ", AuthenticationInspector.restrictUsers[0]));
AuthenticationInspector.restrictUsers.RemoveAt(0);
}
AuthenticationInspector.restrictUsers.Add(userId);
foreach (int i in AuthenticationInspector.restrictUsers)

View File

@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SeedsOutService));
this.ribbon = new DevExpress.XtraBars.Ribbon.RibbonControl();
this.barButtonGroup1 = new DevExpress.XtraBars.BarButtonGroup();
@ -107,7 +108,7 @@
this.txtLocation = new DevExpress.XtraEditors.TextEdit();
this.layoutControlGroup15 = new DevExpress.XtraLayout.LayoutControlGroup();
this.textEdit2 = new DevExpress.XtraEditors.TextEdit();
this.imageList1 = new System.Windows.Forms.ImageList();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
((System.ComponentModel.ISupportInitialize)(this.dxValidationProvider1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ribbon)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
@ -709,8 +710,8 @@
//
this.tabbedControlGroup2.Location = new System.Drawing.Point(0, 0);
this.tabbedControlGroup2.Name = "tabbedControlGroup2";
this.tabbedControlGroup2.SelectedTabPage = this.layoutControlGroup10;
this.tabbedControlGroup2.SelectedTabPageIndex = 2;
this.tabbedControlGroup2.SelectedTabPage = this.layoutControlGroup3;
this.tabbedControlGroup2.SelectedTabPageIndex = 0;
this.tabbedControlGroup2.Size = new System.Drawing.Size(2090, 188);
this.tabbedControlGroup2.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlGroup3,

View File

@ -303,7 +303,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABM
CQAAAk1TRnQBSQFMAgEBAgEAAbABBwGwAQcBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CQAAAk1TRnQBSQFMAgEBAgEAAbgBBwG4AQcBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@ -247,6 +247,9 @@ namespace DeiNiu.wms.win.ServiceReferenceStockOutPickRequest {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsOutPickRequest/lightByJob", ReplyAction="http://tempuri.org/IWmsOutPickRequest/lightByJobResponse")]
System.Data.DataTable lightByJob(int userId, string jobNo, bool isValid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsOutPickRequest/lightSeeds", ReplyAction="http://tempuri.org/IWmsOutPickRequest/lightSeedsResponse")]
System.Data.DataTable lightSeeds(int deskId, string flowno, string barcode, int userId, bool isValid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsOutPickRequest/updatePortPickingStatus", ReplyAction="http://tempuri.org/IWmsOutPickRequest/updatePortPickingStatusResponse")]
bool updatePortPickingStatus(int userId, int color, int labId, int address, decimal count);
@ -598,6 +601,10 @@ namespace DeiNiu.wms.win.ServiceReferenceStockOutPickRequest {
return base.Channel.lightByJob(userId, jobNo, isValid);
}
public System.Data.DataTable lightSeeds(int deskId, string flowno, string barcode, int userId, bool isValid) {
return base.Channel.lightSeeds(deskId, flowno, barcode, userId, isValid);
}
public bool updatePortPickingStatus(int userId, int color, int labId, int address, decimal count) {
return base.Channel.updatePortPickingStatus(userId, color, labId, address, count);
}

View File

@ -472,6 +472,12 @@
<wsdl:message name="IWmsOutPickRequest_lightByJob_OutputMessage">
<wsdl:part name="parameters" element="tns:lightByJobResponse" />
</wsdl:message>
<wsdl:message name="IWmsOutPickRequest_lightSeeds_InputMessage">
<wsdl:part name="parameters" element="tns:lightSeeds" />
</wsdl:message>
<wsdl:message name="IWmsOutPickRequest_lightSeeds_OutputMessage">
<wsdl:part name="parameters" element="tns:lightSeedsResponse" />
</wsdl:message>
<wsdl:message name="IWmsOutPickRequest_updatePortPickingStatus_InputMessage">
<wsdl:part name="parameters" element="tns:updatePortPickingStatus" />
</wsdl:message>
@ -811,6 +817,10 @@
<wsdl:input wsaw:Action="http://tempuri.org/IWmsOutPickRequest/lightByJob" message="tns:IWmsOutPickRequest_lightByJob_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IWmsOutPickRequest/lightByJobResponse" message="tns:IWmsOutPickRequest_lightByJob_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="lightSeeds">
<wsdl:input wsaw:Action="http://tempuri.org/IWmsOutPickRequest/lightSeeds" message="tns:IWmsOutPickRequest_lightSeeds_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IWmsOutPickRequest/lightSeedsResponse" message="tns:IWmsOutPickRequest_lightSeeds_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="updatePortPickingStatus">
<wsdl:input wsaw:Action="http://tempuri.org/IWmsOutPickRequest/updatePortPickingStatus" message="tns:IWmsOutPickRequest_updatePortPickingStatus_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IWmsOutPickRequest/updatePortPickingStatusResponse" message="tns:IWmsOutPickRequest_updatePortPickingStatus_OutputMessage" />
@ -1527,6 +1537,15 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="lightSeeds">
<soap:operation soapAction="http://tempuri.org/IWmsOutPickRequest/lightSeeds" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="updatePortPickingStatus">
<soap:operation soapAction="http://tempuri.org/IWmsOutPickRequest/updatePortPickingStatus" style="document" />
<wsdl:input>

View File

@ -1698,6 +1698,36 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="lightSeeds">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="deskId" type="xs:int" />
<xs:element minOccurs="0" name="flowno" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="barcode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="userId" type="xs:int" />
<xs:element minOccurs="0" name="isValid" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="lightSeedsResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="lightSeedsResult" nillable="true">
<xs:complexType>
<xs:annotation>
<xs:appinfo>
<ActualType Name="DataTable" Namespace="http://schemas.datacontract.org/2004/07/System.Data" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
<xs:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="updatePortPickingStatus">
<xs:complexType>
<xs:sequence>