Example #1
0
 public void setMasterDataTransferred(Sapservice.ZLAW_I_GET_MASTER_DATAResponse Res)
 {
     Sapservice.ZLAW_I_SET_MASTER_DATA_OK z = new soti.Sapservice.ZLAW_I_SET_MASTER_DATA_OK();
     z.I_ERDAT = Res.E_ERDAT;
     z.I_ERZET = Res.E_ERZET;
     serv.ZLAW_I_SET_MASTER_DATA_OK(z);
 }
Example #2
0
        public void setMasterData(Sapservice.ZLAW_I_GET_MASTER_DATAResponse Res)
        {
            for (int n = 0; n < Res.E_CUSTOMERS.Length; n++)
            {
                switch (Res.E_CUSTOMERS[n].ACTIO)
                {
                case "I":
                    createClient(Res.E_CUSTOMERS[n]);
                    break;

                case "U":
                    updateClient(Res.E_CUSTOMERS[n]);
                    break;

                case "D":
                    deleteClient(Res.E_CUSTOMERS[n]);
                    break;
                }
            }

            for (int n = 0; n < Res.E_MATTERS.Length; n++)
            {
                switch (Res.E_MATTERS[n].ACTIO)
                {
                case "I":
                    createMatter(Res.E_MATTERS[n]);
                    break;

                case "U":
                    updateMatter(Res.E_MATTERS[n]);
                    break;

                case "D":
                    deleteMatter(Res.E_MATTERS[n]);
                    break;
                }
            }

            Program.sap.setMasterDataTransferred(Res);
        }