Ejemplo n.º 1
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            IList <MrpShipPlan> mrpShipPlanList = new List <MrpShipPlan>();
            foreach (GridViewRow gvr in this.GV_Detail.Rows)
            {
                HiddenField hdfId = (HiddenField)gvr.FindControl("hdfId");
                int         id    = int.Parse(hdfId.Value);

                Label   tbQty = (Label)gvr.FindControl("tbQty");
                decimal qty   = decimal.Parse(tbQty.Text.Trim());

                MrpShipPlan mrpShipPlan = TheMrpShipPlanMgr.LoadMrpShipPlan(id);
                mrpShipPlan.Qty = qty;
                mrpShipPlanList.Add(mrpShipPlan);
            }

            TheMrpShipPlanMgr.UpdateMrpShipPlan(mrpShipPlanList);
            ShowSuccessMessage("MRP.Schedule.Update.Successfully");
        }
        catch (BusinessErrorException ex)
        {
            ShowErrorMessage("MRP.Schedule.Update.Failed");
        }
    }
Ejemplo n.º 2
0
 public virtual void DeleteMrpShipPlan(MrpShipPlan entity)
 {
     Delete(entity);
 }
Ejemplo n.º 3
0
 public virtual void UpdateMrpShipPlan(MrpShipPlan entity)
 {
     Update(entity);
 }
Ejemplo n.º 4
0
 public virtual void CreateMrpShipPlan(MrpShipPlan entity)
 {
     Create(entity);
 }
Ejemplo n.º 5
0
 public virtual void DeleteMrpShipPlan(MrpShipPlan entity)
 {
     entityDao.DeleteMrpShipPlan(entity);
 }
Ejemplo n.º 6
0
 public virtual void UpdateMrpShipPlan(MrpShipPlan entity)
 {
     entityDao.UpdateMrpShipPlan(entity);
 }
Ejemplo n.º 7
0
 public virtual void CreateMrpShipPlan(MrpShipPlan entity)
 {
     entityDao.CreateMrpShipPlan(entity);
 }