本文整理汇总了C#中BLL.ReceiveDoc.GetReceivedQuantityTillMonthAll方法的典型用法代码示例。如果您正苦于以下问题:C# ReceiveDoc.GetReceivedQuantityTillMonthAll方法的具体用法?C# ReceiveDoc.GetReceivedQuantityTillMonthAll怎么用?C# ReceiveDoc.GetReceivedQuantityTillMonthAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BLL.ReceiveDoc
的用法示例。
在下文中一共展示了ReceiveDoc.GetReceivedQuantityTillMonthAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetSOHAll
public Int64 GetSOHAll(int itemId, int month, int year)
{
//ask by normal u get soh on normal month
IssueDoc iss = new IssueDoc();
ReceiveDoc rec = new ReceiveDoc();
Disposal dis = new Disposal();
YearEnd yEnd = new YearEnd();
Int64 cons = 0;
cons = (yEnd.GetBBalanceAll(year, itemId) + rec.GetReceivedQuantityTillMonthAll(itemId, month, year) + dis.GetAdjustedQuantityTillMonthAll(itemId, month, year) - iss.GetIssuedQuantityTillMonthAll(itemId, month, year) - dis.GetLossesQuantityTillMonthAll(itemId, month, year));
this.FlushData();
return cons;
}
示例2: GetBBalanceAll
public Int64 GetBBalanceAll(int year, int itemId)
{
this.FlushData();
Int64 bb = 0;
this.LoadFromRawSql(String.Format("Select * from YearEnd where ItemID = {0} AND Year = {1}", itemId, year));
if (this.DataTable.Rows.Count > 0)
{
bb = Convert.ToInt64(this.DataTable.Rows[0]["PhysicalInventory"]);
}
else
{
this.LoadFromRawSql(String.Format("Select * from YearEnd where ItemID = {0} AND Year = {1}", itemId,
year - 1));
if (this.DataTable.Rows.Count > 0)
{
bb = Convert.ToInt64(this.DataTable.Rows[0]["PhysicalInventory"]);
}
else if (((year + 8) > DateTime.Now.Year)) // to check if it is different year from current
{
Int64 cons = 0;
IssueDoc iss = new IssueDoc();
ReceiveDoc rec = new ReceiveDoc();
Disposal dis = new Disposal();
if ((year + 8) > DateTime.Now.Year) // to check if it is hamle and Nehase
year = year - 1;
int month = 10;
cons = (rec.GetReceivedQuantityTillMonthAll(itemId, month, year) +
dis.GetAdjustedQuantityTillMonthAll(itemId, month, year) -
iss.GetIssuedQuantityTillMonthAll(itemId, month, year) -
dis.GetLossesQuantityTillMonthAll(itemId, month, year));
bb = cons;
}
}
return bb;
}