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