|
|
@ -20,20 +20,20 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
|
|
|
|
public class SalesStockSum |
|
|
|
{ |
|
|
|
public string Version {set;get;} |
|
|
|
public string PartCode {set;get;} |
|
|
|
public string LocCode {set;get;} |
|
|
|
public decimal StartQty {set;get;} |
|
|
|
public decimal InQty {set;get;} |
|
|
|
public string Version { set; get; } |
|
|
|
public string PartCode { set; get; } |
|
|
|
public string LocCode { set; get; } |
|
|
|
public decimal StartQty { set; get; } |
|
|
|
public decimal InQty { set; get; } |
|
|
|
|
|
|
|
public decimal OutQty {set;get;} |
|
|
|
public decimal OutQty { set; get; } |
|
|
|
|
|
|
|
public decimal EndQty {set;get;} |
|
|
|
public decimal EndQty { set; get; } |
|
|
|
|
|
|
|
public string Remark {set;get;} |
|
|
|
public DateTime CreateTime {set;get;} |
|
|
|
public string Remark { set; get; } |
|
|
|
public DateTime CreateTime { set; get; } |
|
|
|
|
|
|
|
public string OperName {set;get;} |
|
|
|
public string OperName { set; get; } |
|
|
|
|
|
|
|
public DateTime StartTime { set; get; } |
|
|
|
|
|
|
@ -41,7 +41,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
|
|
|
|
public string PartDesc { set; get; } |
|
|
|
public string PartGroup { set; get; } |
|
|
|
|
|
|
|
public string PartGroupDesc { set; get; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -94,14 +94,17 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
//" ) B ON A.PartCode = B.PartCode where a.version='{0}'";
|
|
|
|
string str = " SELECT A.*, \n" + |
|
|
|
" B.PartDesc, \n" + |
|
|
|
" B.PartGroup \n" + |
|
|
|
" B.PartGroup, \n" + |
|
|
|
" B.PartGroupDesc \n" + |
|
|
|
" FROM \n" + |
|
|
|
" TM_PG_TIME_STOCK_DETAIL \n" + |
|
|
|
" A LEFT JOIN ( \n" + |
|
|
|
" SELECT DISTINCT \n" + |
|
|
|
" PartCode, \n" + |
|
|
|
" ( ISNULL ( [PartDesc1], '' ) + ISNULL ( [PartDesc2], '' ) ) PartDesc, \n" + |
|
|
|
" PartGroup \n" + |
|
|
|
" PartGroup ,PartGroupDesc\n" + |
|
|
|
|
|
|
|
|
|
|
|
" FROM \n" + |
|
|
|
" VIEW_PG_SIMPLE_PART \n" + |
|
|
|
" ) B ON A.PartCode = B.PartCode where a.version='{0}'"; |
|
|
|