Example #1
0
        public static ClsReturnValues setRegister(ClsRegister obj)
        {
            ClsReturnValues lst = new ClsReturnValues();

            using (var db = new tdoEntities())
            {
                lst = db.uspAddEditRegister(obj.tdoRegisterID, obj.jobNumber, obj.dateReceived, obj.expiryDate, obj.status, obj.cargoTypeID, obj.fileRef, obj.destinationID,
                                            obj.terminalID, obj.containerNo, obj.returnTerminal, obj.truckID, obj.tdoReceiptDate, obj.schDelDate, obj.loadingTime, obj.dispatchTime,
                                            obj.remarks, obj.createdByID, obj.sessionID).FirstOrDefault();
            }
            return(lst);
        }
Example #2
0
        public static ClsReturnValues setRegister(ClsRegister obj)
        {
            ClsReturnValues lst = new ClsReturnValues();

            using (var db = new tdoEntities())
            {

                lst = db.uspAddEditRegister(obj.tdoRegisterID,obj.jobNumber,obj.dateReceived,obj.expiryDate,obj.status,obj.cargoTypeID,obj.fileRef,obj.destinationID,
                                            obj.terminalID,obj.containerNo,obj.returnTerminal,obj.truckID,obj.tdoReceiptDate,obj.schDelDate,obj.loadingTime,obj.dispatchTime,
                                            obj.remarks,obj.createdByID,obj.sessionID).FirstOrDefault();
            }
            return lst;
        }