本文整理汇总了C#中Whitfieldcore.UPDATEMaterialinWorkOrder方法的典型用法代码示例。如果您正苦于以下问题:C# Whitfieldcore.UPDATEMaterialinWorkOrder方法的具体用法?C# Whitfieldcore.UPDATEMaterialinWorkOrder怎么用?C# Whitfieldcore.UPDATEMaterialinWorkOrder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Whitfieldcore
的用法示例。
在下文中一共展示了Whitfieldcore.UPDATEMaterialinWorkOrder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: grdpl1_UpdateCommand
public void grdpl1_UpdateCommand(object sender, DataGridCommandEventArgs e)
{
String DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
Whitfieldcore _dbClass = new Whitfieldcore();
_dbClass.UPDATEMaterialinWorkOrder(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString(), Convert.ToInt32(DetailId), ((TextBox)(e.Item.FindControl("txtqty"))).Text);
grdpl1.EditItemIndex = -1;
grdpl1.ShowFooter = true;
this.DisplayGrid(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString());
Page.GetType().InvokeMember("DisplayGrid", BindingFlags.InvokeMethod, null, this.Page, null);
}
示例2: btnInsert_Click
protected void btnInsert_Click(object sender, EventArgs e)
{
try
{
Whitfieldcore _dbClass = new Whitfieldcore();
foreach (DataGridItem dgItem in grdpl1.Items)
{
// String DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
Int32 DetailId = Convert.ToInt32(grdpl1.DataKeys[dgItem.ItemIndex].ToString());
String FeatureValue = ((TextBox)dgItem.FindControl("txtqty1")).Text;
_dbClass.UPDATEMaterialinWorkOrder(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString(), Convert.ToInt32(DetailId), FeatureValue.ToString().Trim());
}
this.DisplayGrid(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString());
Page.GetType().InvokeMember("DisplayGrid", BindingFlags.InvokeMethod, null, this.Page, null);
}
catch (Exception exp)
{
Response.Write(exp.Message.ToString());
}
grdpl1.EditItemIndex = -1;
grdpl1.ShowFooter = true;
}