本文整理汇总了C#中BLL.ReceiveDoc.LoadForPricing方法的典型用法代码示例。如果您正苦于以下问题:C# ReceiveDoc.LoadForPricing方法的具体用法?C# ReceiveDoc.LoadForPricing怎么用?C# ReceiveDoc.LoadForPricing使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BLL.ReceiveDoc
的用法示例。
在下文中一共展示了ReceiveDoc.LoadForPricing方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindDetails
private void BindDetails(DataRow dr)
{
// txtAdditionalCost.EditValue = 0;
//txtMargin.EditValue = 100;
try
{
Convert.ToInt16(dr["ItemID"]);
}
catch
{
ResetForm();
return;
}
if (dr != null)
{
rs = new ReceivedSummary();
ReceiveDoc rd = new ReceiveDoc();
rs.ItemID = Convert.ToInt32(dr["ItemID"]);
rs.SupplierID = Convert.ToInt32(dr["SupplierID"]);
rs.ManufacturerID = Convert.ToInt32(dr["ManufacturerID"]);
rs.UnitID= null;
if (dr["UnitID"] != DBNull.Value)
{
rs.UnitID = Convert.ToInt32(dr["UnitID"]);
}
rs.StoreID = Convert.ToInt32(lkAccount.EditValue);
// TODO: fix this ( Remove ) try cache
try
{
txtUnit.Text = dr["Unit"].ToString();
}
catch
{
}
txtItemName.Text = dr["FullItemName"].ToString();
txtManufacturer.Text = dr["Manufacturer"].ToString();
rd.LoadForPricing(rs.ItemID, rs.SupplierID,rs.StoreID, rs.ManufacturerID, rs.UnitID);
gridAllSimilarItems.DataSource = rd.DefaultView;
LoadDecimalFormatings();
rs.MovingAverageTable(rs.ItemID, rs.StoreID,rs.SupplierID, rs.ManufacturerID, rs.UnitID);
txtAverageCost.EditValue = rs.NewUnitCost;
txtMargin.EditValue = rs.Margin;
txtSellingPrice.EditValue = rs.NewSellingPrice;
}
}
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:54,代码来源:PriceSettingsHubConfirmation.cs