Ejemplo n.º 1
0
 /// <summary>
 /// 新增物料信息
 /// </summary>
 /// <param name="odinfo"></param>
 /// <returns></returns>
 public YC.SQLServerDAL.ODMaterialdetail NewODMaterialdetail(YC.SQLServerDAL.ODMaterialdetail odmaterial)
 {
     if (odmaterial != null)
     {
         odmaterial.ODMId = Guid.Empty;
         odmaterial.ODMId = Guid.NewGuid();
         dbContext.ODMaterialdetail.InsertOnSubmit(odmaterial);
         dbContext.SubmitChanges();
     }
     return(odmaterial);
 }
Ejemplo n.º 2
0
    void InsertTelFeeInfo()
    {
        int i = 0;

        foreach (GridViewRow row in GridView1.Rows)
        {
            if (int.TryParse(row.Cells[0].Text, out i) == true)
            {
                YC.SQLServerDAL.ODMaterialdetail odmdetail = new YC.SQLServerDAL.ODMaterialdetail();
                odmdetail.ODId         = Guid.Parse("a9d71bf9-4e58-45f4-9bb8-aa272e9b793f");
                odmdetail.MaterialName = row.Cells[1].Text;
                odmdetail.Model        = row.Cells[2].Text;
                odmdetail.Quantity     = Convert.ToDecimal(row.Cells[3].Text);
                odmdetail.Unit         = row.Cells[4].Text;
                odmdetail.Reamrk       = row.Cells[5].Text;
                bll_odmdetail.NewODMaterialdetail(odmdetail);
            }
        }
    }
Ejemplo n.º 3
0
    void InsertMaterialInfo()
    {
        int i = 0;

        foreach (GridViewRow row in GridView1.Rows)
        {
            if (int.TryParse(row.Cells[0].Text, out i) == true)
            {
                YC.SQLServerDAL.ODMaterialdetail odmdetail = new YC.SQLServerDAL.ODMaterialdetail();
                odmdetail.ODId         = Guid.Parse(hfODId.Value);
                odmdetail.ProjectId    = Guid.Parse(hfProId.Value);
                odmdetail.MaterialName = row.Cells[1].Text;
                odmdetail.Model        = row.Cells[2].Text;
                odmdetail.Quantity     = Convert.ToDecimal(row.Cells[3].Text);
                odmdetail.Unit         = row.Cells[4].Text;
                odmdetail.Reamrk       = row.Cells[5].Text;
                bll_odmdetail.NewODMaterialdetail(odmdetail);
            }
        }
    }