예제 #1
0
        public override DataSet Clone()
        {
            tlg_StockDataset cln = ((tlg_StockDataset)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
예제 #2
0
        public static decimal GetStock(string IdProducto, string IdDeposito, string IdSeccion, string IdEstadoDeStock, long IdSucursal, long IdEmpresa)
        {
            decimal stock = 0;

            mz.erp.commontypes.data.tlg_StockDataset data = mz.erp.businessrules.tlg_Stock.GetList(IdProducto, IdDeposito, IdSeccion, IdEstadoDeStock, IdSucursal, IdEmpresa);
            if (data != null)
            {
                if (data.tlg_Stock.Rows.Count > 0)
                {
                    stock = Convert.ToDecimal(data.tlg_Stock.Rows[0]["Cantidad"]);
                }
            }
            return(stock);
        }