Esempio n. 1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstQuality objdata = obj as T_MstQuality;

            this.QualityCode       = objdata.QualityCode;
            this.CompanyId         = objdata.CompanyId;
            this.QualityName       = objdata.QualityName;
            this.OpeningStockMtrs  = objdata.OpeningStockMtrs;
            this.OpeningStockTaga  = objdata.OpeningStockTaga;
            this.OpeningStockBales = objdata.OpeningStockBales;
            this.Commodity         = objdata.Commodity;
            this.LUT = objdata.LUT;
        }
Esempio n. 2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T            obj     = new T();
            T_MstQuality objdata = obj as T_MstQuality;

            objdata.QualityCode       = this.QualityCode;
            objdata.CompanyId         = this.CompanyId;
            objdata.QualityName       = this.QualityName;
            objdata.OpeningStockMtrs  = this.OpeningStockMtrs;
            objdata.OpeningStockTaga  = this.OpeningStockTaga;
            objdata.OpeningStockBales = this.OpeningStockBales;
            objdata.Commodity         = this.Commodity;
            objdata.LUT = this.LUT;
            return(obj);
        }