Esempio n. 1
0
        public void SetClient(DataRow parRw)
        {
            varClient.SetClient(parRw);

            ParametersCollection varParameters = new ParametersCollection();

            varParameters.Add("parIdWorkplace", GlobalVar.varIdWorkPlace, DbType.Int32);
            varParameters.Add("parCodePeriod", varReceipt.varCodePeriod, DbType.Int32);
            varParameters.Add("parCodeReceipt", varReceipt.varCodeReceipt, DbType.Int32);
            varParameters.Add("parCodeClient", varClient.varCodeClient, DbType.Int32);
            varWDB.UpdateClient(varParameters);

            RecalcPrice();
            Global.Log(CodeEvent.SetClient, varClient.varCodeClient, 0, this.varClient.varNameClient);
        }
Esempio n. 2
0
        void SetClient(DataRow parRw)
        {
            varClient.SetClient(parRw);
            Client.Text = varClient.varNameClient;

            ParametersCollection varParameters = new ParametersCollection();

            varParameters.Add("parIdWorkplace", GlobalVar.varIdWorkPlace, DbType.Int32);
            varParameters.Add("parCodePeriod", varReceipt.varCodePeriod, DbType.Int32);
            varParameters.Add("parCodeReceipt", varReceipt.varCodeReceipt, DbType.Int32);
            varParameters.Add("parCodeClient", varClient.varCodeClient, DbType.Int32);
            varWDB.UpdateClient(varParameters);
            Bonus.Text = varClient.varSumMoneyBonus.ToString();
            RecalcPrice();
            Global.Log(CodeLog.SetClient, varClient.varCodeClient, 0, this.varClient.varNameClient);
        }