public OperationResult Update(UpdateSALES_EORDERDETAILSModel model)
        {
            var entity = SALES_EORDERDETAILSList.First(t => t.OrderID == model.OrderID && t.ProductNo == model.ProductNo);

            entity.OrderID    = model.OrderID;
            entity.ProductNo  = model.ProductNo;
            entity.OrderQty   = model.OrderQty;
            entity.Unit       = model.Unit;
            entity.UnitCost   = model.UnitCost;
            entity.UnitPrice  = model.UnitPrice;
            entity.Tax        = model.Tax;
            entity.Freight    = model.Freight;
            entity.CommText   = model.CommText;
            entity.Creator    = model.Creator;
            entity.Modifier   = model.Modifier;
            entity.ModiDate   = model.ModiDate;
            entity.CreateDate = model.CreateDate;
            entity.RowID      = model.RowID;
            entity.Status     = model.Status;
            entity.Item01     = model.Item01;
            entity.Item02     = model.Item02;
            entity.Item03     = model.Item03;
            entity.Item04     = model.Item04;
            entity.Item05     = model.Item05;
            entity.UnitPType  = model.UnitPType;

            SALES_EORDERDETAILSRepository.Update(entity);
            return(new OperationResult(OperationResultType.Success, "update completed"));
        }
        public OperationResult Insert(SALES_EORDERDETAILSModel model)
        {
            var entity = new SALES_EORDERDETAILS
            {
                OrderID    = model.OrderID,
                ProductNo  = model.ProductNo,
                OrderQty   = model.OrderQty,
                Unit       = model.Unit,
                UnitCost   = model.UnitCost,
                UnitPrice  = model.UnitPrice,
                Tax        = model.Tax,
                Freight    = model.Freight,
                CommText   = model.CommText,
                Creator    = model.Creator,
                Modifier   = model.Modifier,
                ModiDate   = model.ModiDate,
                CreateDate = model.CreateDate,
                RowID      = model.RowID,
                Status     = model.Status,
                Item01     = model.Item01,
                Item02     = model.Item02,
                Item03     = model.Item03,
                Item04     = model.Item04,
                Item05     = model.Item05,
                UnitPType  = model.UnitPType,
            };

            SALES_EORDERDETAILSRepository.Insert(entity);
            return(new OperationResult(OperationResultType.Success, "Added successfully"));
        }
        public OperationResult Delete(string OrderID, string ProductNo)
        {
            var model = SALES_EORDERDETAILSList.FirstOrDefault(t => t.OrderID == OrderID && t.ProductNo == ProductNo);

            SALES_EORDERDETAILSRepository.Delete(model);
            return(new OperationResult(OperationResultType.Success, "successfully deleted"));
        }
 public IEnumerable <SALES_EORDERDETAILS_MASTER> QueryEntities(int count, string strWhere, string strOrder)
 {
     return(SALES_EORDERDETAILSRepository.QueryEntities(count, strWhere, strOrder));
 }