Example #1
0
 /// <summary>
 /// Method to save (add/edit) party object
 /// </summary>
 /// <param name="party"></param>
 /// <returns></returns>
 public bool SaveLocation(INVStockLoading loc)
 {
     try
     {
         if (loc.LoadingID == 0)
         {
             return _LoadDAOLinq.Add(loc);
         }
         else
         {
             return _LoadDAOLinq.Edit(loc, true);
         }
     }
     catch (Exception ex)
     {
         return false;
     }
 }
Example #2
0
 public bool DeleteParty(INVStockLoading loc)
 {
     try
     {
         if (loc.LoadingID > 0)
         {
             return _LoadDAOLinq.Delete(loc, true);
         }
         else
         {
             return false;
         }
     }
     catch (Exception ex)
     {
         return false;
     }
 }
Example #3
0
 partial void DeleteINVStockLoading(INVStockLoading instance);
Example #4
0
 partial void UpdateINVStockLoading(INVStockLoading instance);
Example #5
0
 partial void InsertINVStockLoading(INVStockLoading instance);
Example #6
0
		private void detach_INVStockLoadings(INVStockLoading entity)
		{
			this.SendPropertyChanging();
			entity.INVStockSerial = null;
		}
Example #7
0
        private INVStockLoading FormToObject(int id)
        {
            if (id <= 0)
            {
                _Loading = new INVStockLoading();

                //_Loading.CreatedBy = WebCommonUtility.GetCSMSysUserKey();
                //_Loading.CreatedDate = System.DateTime.Now;
            }

            //_Loading.ModifiedBy = WebCommonUtility.GetCSMSysUserKey();
            //_Loading.ModifiedDate = System.DateTime.Now;

            _Loading.LoadingID = id;
            _Loading.ChamberNo = txtchamber.Text;
            _Loading.Floor = txtfloor.Text;
            _Loading.Pocket = txtpocket.Text;
            _Loading.Line = txtlineno.Text;

            _Loading.Remarks = txtremarks.Text;

            //_Loading.PartyCodeName = txtCode.Text + " - " + txtName.Text;
            //_Loading.IsActive = true;

            return _Loading;
        }