Exemple #1
0
 public static void InitConfig(WDB parWDB)
 {
     GlobalVar.varDefaultCodeClient         = Convert.ToInt32(parWDB.GetConfig("DEFAULT_CODE_CLIENT"));
     GlobalVar.varDefaultCodeDealer[0]      = Convert.ToInt32(parWDB.GetConfig("DEFAULT_CODE_DEALER"));          //TMP
     GlobalVar.varTypeFindClient            = Convert.ToInt32(parWDB.GetConfig("TYPE_FIND_CLIENT"));
     GlobalVar.varTypeFindWares             = Convert.ToInt32(parWDB.GetConfig("TYPE_FIND_WARES"));
     GlobalVar.varDefaultCodePatternReceipt = Convert.ToInt32(parWDB.GetConfig("DEFAULT_CODE_PATTERN_RECEIPT"));
     GlobalVar.varBillCoins = Convert.ToString(parWDB.GetConfig("BILL_COINS"));
     GlobalVar.varMinLenghtBarCodeClient   = Convert.ToInt32(parWDB.GetConfig("MIN_LENGHT_BAR_CODE_CLIENT"));
     GlobalVar.varMinLenghtBarCodeWares    = Convert.ToInt32(parWDB.GetConfig("MIN_LENGHT_BAR_CODE_WARES"));
     GlobalVar.varTypePeriod               = Convert.ToInt32(parWDB.GetConfig("TYPE_PERIOD"));
     GlobalVar.varUnitMustInputQuantity[0] = Convert.ToInt32(parWDB.GetConfig("UNIT_MUST_INPUT_QUANTITY"));       //TMP
     GlobalVar.varQuantityOpenReceipt      = Convert.ToInt32(parWDB.GetConfig("QUANTITY_OPEN_RECEIPT"));          //TMP
 }