Ejemplo n.º 1
0
        public static string GetSendURI(string uriType, 
            hmrcclasses.GovernmentGatewayEnvironment gatewayEnvironment, 
            CR.Infrastructure.Configuration.IConfigurationRepository _configurationRepository)
        {
            string env = gatewayEnvironment.ToString();

            string uri = "";

            switch (uriType)
            {
                case "Test":
                    //uri = ConfigurationManager.AppSettings["SendURIlocaltestservice"];
                    uri = _configurationRepository.GetConfigurationValue<string>("SendURIlocaltestservice");
                    break;
                case "Send":
                    uri = _configurationRepository.GetConfigurationValue<string>(string.Concat("SendURI", env));
                    break;
                case "Poll":
                    uri = _configurationRepository.GetConfigurationValue<string>(string.Concat("PollURI", env));
                    break;
                case "DataRequest":
                    uri = _configurationRepository.GetConfigurationValue<string>(string.Concat("SendURI", env));
                    break;
            }

            return uri;
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var cr = new CR();
            var K  = cr.i;
            var S  = cr.i;

            var ans = 0;

            for (int x = 0; x <= K; x++)
            {
                for (int y = 0; y <= K; y++)
                {
                    var z = S - (x + y);
                    if (0 <= z && z <= K)
                    {
                        ans++;
                    }
                }
            }
            Console.WriteLine(ans);
        }
Ejemplo n.º 3
0
        public ActionResult Select(int?id)
        {
            Fleet fleet = db.Fleets.Find(id);
            CR    cr    = new CR();

            cr.VINnumber   = fleet.VinNumber;
            cr.FleetNumber = fleet.FleetNumber;
            cr.UnitNumber  = fleet.UnitNumber;
            cr.Status      = "none";
            cr.Clientname  = fleet.Level_2;
            var userIdValue = Environment.UserName;


            var claimsIdentity = User.Identity as ClaimsIdentity;

            if (claimsIdentity != null)
            {
                // the principal identity is a claims identity.
                // now we need to find the NameIdentifier claim
                var userIdClaim = claimsIdentity.Claims
                                  .FirstOrDefault(x => x.Type == ClaimTypes.Name);

                if (userIdClaim != null)
                {
                    userIdValue = userIdClaim.Value;
                }
            }

            cr.CreatedBy    = userIdValue;
            cr.Servicedate  = DateTime.Now;
            cr.Invoicedate  = DateTime.Now;
            cr.Paymentdate  = DateTime.Now;
            cr.ModifiedDate = DateTime.Now;
            db.CRs.Add(cr);
            db.SaveChanges();
            var crid = cr.crID;

            return(RedirectToAction("Create", "CRs", new { id = crid }));
        }
Ejemplo n.º 4
0
        protected virtual void ProcessBackGroundButtons() /* This is the method of a thread responsible for clicking the
                                                           * buttons that allow access to Outlook from DCOM. */
        {
            DateTime timereset = DateTime.Now.AddSeconds(30);

            while (fThStack != null)
            {
                try
                {
                    CR.WaitOne();
                    try
                    {
                        if (OutlookAllowBtnES.ComponentExist() && (OutlookAllowBtnES.enabled() != 0) &&
                            StringIn(OutlookAllowBtnES.name(), "permitir", "allow"))
                        {
                            if (OutlookAllowAccessES.ComponentExist())
                            {
                                OutlookAllowAccessES.Checked = 1;
                            }
                            OutlookAllowBtnES.click();
                        }
                        else if (timereset < DateTime.Now)
                        {
                            reset(OutlookAllowBtnES);
                            timereset = DateTime.Now.AddSeconds(30);
                        }
                    }
                    finally
                    {
                        CR.ReleaseMutex();
                    }
                }
                catch (Exception e)
                {
                    forensic("OutlookAPI.ProcessBackGroundButtons", e);
                }
                Thread.Sleep(500);
            }
        }
Ejemplo n.º 5
0
 public double VolumPosibilSD(double volum)
 {
     if ((volum >= CR.Volum - CR.Marja) && (CR.ExistaCapacitate(1)))
     {
         //daca volum e intre 94-2 si 94+2 return volum, daca e mai mare de 94 return 94
         if (volum > CR.VolumMax)
         {
             return(CR.Volum);
         }
         else
         {
             return(volum);
         }
     }
     if ((volum >= Mega.Volum - Mega.Marja) && (Mega.ExistaCapacitate(1)))
     {
         if (volum > Mega.VolumMax)
         {
             return(Mega.Volum);
         }
         else
         {
             return(volum);
         }
     }
     if ((volum >= Normal.Volum - Normal.Marja) && (Normal.ExistaCapacitate(1)))
     {
         if (volum > Normal.VolumMax)
         {
             return(Normal.Volum);
         }
         else
         {
             return(volum);
         }
     }
     return(0);
 }
Ejemplo n.º 6
0
 public ActionResult Edit(CR cR)
 {
     if (ModelState.IsValid)
     {
         var crdetail = from s in db.CRdetails
                        where s.IDCR.ToString().Contains(cR.crID.ToString())
                        select s;
         decimal subtotal = 0.0m;
         foreach (CRdetail item in crdetail)
         {
             subtotal = subtotal + item.Authorized;
         }
         cR.Status          = "Pending Aproval";
         cR.Subtotal        = subtotal;
         cR.IVA             = subtotal * 0.16m;
         cR.Total           = subtotal * 1.16m;
         cR.ModifiedDate    = DateTime.Now;
         db.Entry(cR).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Edit", new { id = cR.crID }));
     }
     return(View(cR));
 }
Ejemplo n.º 7
0
        void loadReport()
        {
            dgvHD.DataSource = cn.XDL("select MaHD, TenDV, DonGia, SoluongDV, ThanhTien from DichVu, ChiTietHoaDon where ChiTietHoaDon.MaDV=DichVu.MaDV and ChiTietHoaDon.MaHD='" + txtMaHD.Text.ToString() + "'");
            txtTongtien.Text = cn.XDL("select sum(ThanhTien) as TongTien from ChiTietHoaDon where MaHD='" + txtMaHD.Text.ToString() + "'").Rows[0][0].ToString();
            DataSet   ds = new DataSet();
            DataTable dt = new DataTable();

            dt.Columns.Add("MaHD", typeof(string));
            dt.Columns.Add("TenDV", typeof(string));
            dt.Columns.Add("DonGia", typeof(float));
            dt.Columns.Add("SoluongDV", typeof(float));
            dt.Columns.Add("ThanhTien", typeof(float));
            foreach (DataGridViewRow dgv in dgvHD.Rows)
            {
                dt.Rows.Add(dgv.Cells["MaHD"].Value, dgv.Cells["TenDV"].Value, dgv.Cells["DonGia"].Value, dgv.Cells["SoluongDV"].Value, dgv.Cells["ThanhTien"].Value);
            }
            ds.Tables.Add(dt);
            ds.WriteXmlSchema("report.xml");
            CR cr = new CR();

            cr.SetDataSource(ds);
            crv.ReportSource = cr;
        }
Ejemplo n.º 8
0
        public Byte[] GetProperty(CMRDP property)
        {
            uint proplength = 0;
            uint proptype;
            CR   ret = SetupApi.CM_Get_DevNode_Registry_Property(DevInst, property, out proptype, null, ref proplength, 0);

            if (ret == CR.NO_SUCH_VALUE || ret == CR.NO_SUCH_DEVNODE)
            {
                return(null);
            }
            if (ret != CR.BUFFER_SMALL)
            {
                CMException.Throw(ret, "CM_Get_DevNode_Registry_Property");
            }
            Byte[] propbuffer = new Byte[proplength];
            ret = SetupApi.CM_Get_DevNode_Registry_Property(DevInst, property, out proptype, propbuffer, ref proplength, 0);
            CMException.Throw(ret, "CM_Get_DevNode_Registry_Property");
            if (propbuffer.Length > proplength)
            {
                Array.Resize(ref propbuffer, (int)proplength);
            }
            return(propbuffer);
        }
Ejemplo n.º 9
0
    private void GetArrayCR()
    {
        StringBuilder sbuilder = new StringBuilder();
        int           i        = 0;

        sbuilder.Append(" aCR_js = new Array();\n");

        if (SUPER.Capa_Negocio.Utilidades.EsAdminProduccion())
        {
            CR        objCR = new CR();
            List <CR> lCR   = objCR.ObtenerCatalogo();
            foreach (CR oCR in lCR)
            {
                sbuilder.Append("\taCR_js[" + i.ToString() + "] = new Array(\"" + oCR.bEstado.ToString() + "\",\"" +
                                oCR.nIdCR.ToString() + "\",\"" + oCR.sDesCR.ToString() + "\");\n");
                i++;
            }
            strArrayCR = sbuilder.ToString();
        }
        else
        {
            SqlDataReader dr;

            dr = NODO.ObtenerNodosCalendario((int)Session["UsuarioActual"]);
            while (dr.Read())
            {
                sbuilder.Append("\taCR_js[" + i.ToString() + "] = new Array(\"" + "True" + "\",\"" +
                                dr["t303_idnodo"].ToString() + "\",\"" + dr["t303_denominacion"].ToString() + "\");\n");
                i++;
            }

            strArrayCR = sbuilder.ToString();

            dr.Close();
            dr.Dispose();
        }
    }
Ejemplo n.º 10
0
        public IList <DeviceNode> GetChildren()
        {
            UInt32 child;
            CR     ret = SetupApi.CM_Get_Child(out child, DevInst, 0);

            if (ret == CR.NO_SUCH_DEVNODE)
            {
                return(null);
            }
            CMException.Throw(ret, "CM_Get_Child");
            List <DeviceNode> list = new List <DeviceNode>();

            while (true)
            {
                list.Add(new DeviceNode(child));
                ret = SetupApi.CM_Get_Sibling(out child, child, 0);
                if (ret == CR.NO_SUCH_DEVNODE)
                {
                    break;
                }
                CMException.Throw(ret, "CM_Get_Sibling");
            }
            return(list);
        }
Ejemplo n.º 11
0
 public string CamionPosibilRuta(double volum, int numarStopuri)
 {
     if ((volum <= CamiMica.VolumMax) && (CamiMica.ExistaCapacitate(numarStopuri)))
     {
         return(CamiMica.Denumire);
     }
     if ((volum <= CamiMare.VolumMax) && (CamiMare.ExistaCapacitate(numarStopuri)))
     {
         return(CamiMare.Denumire);
     }
     if ((volum <= Normal.VolumMax) && (Normal.ExistaCapacitate(numarStopuri)))
     {
         return(Normal.Denumire);
     }
     if ((volum <= Mega.VolumMax) && (Mega.ExistaCapacitate(numarStopuri)))
     {
         return(Mega.Denumire);
     }
     if ((volum <= CR.VolumMax) && (CR.ExistaCapacitate(numarStopuri)))
     {
         return(CR.Denumire);
     }
     return("");
 }
Ejemplo n.º 12
0
        protected override void Execute(CodeActivityContext context)
        {
            try
            {
                var tasktypecode = context.GetValue(this.TaskTypeCode);
                _userService = CustomUnityContainer.Container.Resolve <IService <User> >();
                var _emailservice   = CustomUnityContainer.Container.Resolve <IEmailService>();
                var templateSerivce = CustomUnityContainer.Container.Resolve <IService <EmailTemplate> >();
                _service      = CustomUnityContainer.Container.Resolve <IService <CR> >();
                _taskService  = CustomUnityContainer.Container.Resolve <IService <Task> >();
                _stageService = CustomUnityContainer.Container.Resolve <IService <CRStage> >();

                var slaService   = CustomUnityContainer.Container.Resolve <IService <SLA> >();
                CR  workitem     = context.GetValue(this.WorkItem);
                var user         = context.GetValue(this.AssignedTo);
                var task         = context.GetValue(this.Task);
                var strStageCode = context.GetValue(this.StageCode);
                if (workitem.Logs == null)
                {
                    workitem.Logs = new List <CRLog>();
                }
                CRStage stage = _stageService.GetCRStageByCode(workitem.Id, strStageCode, 1, "", true);
                if (task == null)
                {
                    //  workitem.Logs.Add(new CRLog() { RCB = new Teckraft.Core.Domian.Settings.User() { Id = 1 }, StatusCode = workitem.StatusCode, LogType = "Info" });
                    if (user == null)
                    {
                        user = new User()
                        {
                            Id = 1
                        };
                        if (context.GetValue(TaskTypeCode) == "FAAPPROVAL")
                        {
                            user = Teckraft.Data.DataHelper.GetFAUser(workitem.Division.Id, workitem.BusinessFunction.Id, workitem.ProjectCategory);
                        }
                        else if (context.GetValue(TaskTypeCode) == "ITEVAL")
                        {
                            user = new Teckraft.Core.Domian.Settings.User()
                            {
                                Id = 11
                            };
                        }
                        else if (context.GetValue(TaskTypeCode) == "INFRA")
                        {
                            user = WorkflowHelper.GetAssignedToUser("INFRA");
                        }
                    }
                    Team team = null;
                    if (tasktypecode == "MDCEVAL")
                    {
                        team = new Team()
                        {
                            TeamCode = "MDCEVALTEAM"
                        };
                    }
                    else if (tasktypecode == "GRCEVAL")
                    {
                        team = new Team()
                        {
                            TeamCode = "GRCTEAM"
                        };
                    }
                    else if (tasktypecode == "GRCEVAL")
                    {
                        team = new Team()
                        {
                            TeamCode = "GRCTEAM"
                        };
                    }
                    else if (tasktypecode == "GRCEXE")
                    {
                        team = new Team()
                        {
                            TeamCode = "GRCTEAM"
                        };
                    }
                    else if (tasktypecode == "MDCEXE")
                    {
                        team = new Team()
                        {
                            TeamCode = "MDCEXETEAM"
                        };
                    }
                    task = new Teckraft.Core.Workflow.Task()
                    {
                        Subject = "", StartDate = DateTime.Now, RCB = user, CR = workitem, Stage = stage, StatusCode = 1, AssignedTo = user, Title = "new task", UniqueId = Guid.NewGuid(), Team = team, TaskType = new TaskType()
                        {
                            TaskTypeCode = context.GetValue(TaskTypeCode)
                        }
                    };
                }
                else
                {
                    task.RCB      = workitem.RUB;
                    task.RUB      = workitem.RUB.Id;
                    task.TaskType = new TaskType()
                    {
                        TaskTypeCode = context.GetValue(TaskTypeCode)
                    };
                    task.Stage = stage;
                    if (task.UniqueId == Guid.Empty)
                    {
                        task.UniqueId = Guid.NewGuid();
                    }
                }
                if (workitem.StatusCode == 4)
                {
                    var query      = new Teckraft.Data.ListQuery <SLA>();
                    var submodules = workitem.SubModule == null ? "" : workitem.SubModule.Id.ToString();
                    //workitem.MDCSubModules.ForEach(it =>
                    //{
                    //    submodules += it.Id.ToString() + ",";
                    //});
                    if (submodules.Contains(","))
                    {
                        submodules = submodules.Substring(0, submodules.Length - 1);
                    }
                    query.AddParameter(new Teckraft.Data.QueryParameter()
                    {
                        Name = "submodules", Value = submodules
                    });
                    var obj1 = slaService.GetByQuery(query);
                    if (obj1.Items != null)
                    {
                        workitem.Sla = obj1.Items.OrderByDescending(it => it.SLA1Days).FirstOrDefault();
                    }

                    if (workitem.Sla != null)
                    {
                        task.TargetDate  = DateTime.Now.AddDays(workitem.Sla.SLA1Days);
                        workitem.EndDate = task.TargetDate;
                        task.Level2      = _userService.GetById(11);
                    }
                }


                _taskService.Add(task);
                context.SetValue(this.Task, task);
                if (user == null)
                {
                    user = task.AssignedTo;
                }
                // workitem = _service.GetById(workitem.Id);
                // CR.GetCurrentPhase(workitem).Tasks.Add(new Teckraft.Core.Workflow.Task() {StatusCode=1, AssignedTo = workitem.ITFHUser, Title = "new task", UniqueId = Guid.NewGuid(), TeamId = 1, TaskType = new TaskType() {TaskTypeCode=context.GetValue(TaskTypeCode)} });
                //  workitem= _service.Update(workitem);
                _emailservice.SendEmail(templateSerivce.GetTemplate("TASKASSIGNED", tasktypecode), "", user.Email, "", workitem, task);
                if (task.TaskType.TaskTypeCode == "FAAPPROVAL" && workitem.HODApprover == null)
                {
                    workitem.HODApprover = user;
                }

                context.SetValue(this.WorkItem, workitem);
            }
            catch (System.Exception ex)
            {
                try
                {
                    CR  workitem        = context.GetValue(this.WorkItem);
                    var eventlogservice = CustomUnityContainer.Container.Resolve <Teckraft.Services.IService <EventLog> >();
                    var msg             = ex.Message;
                    if (ex.InnerException != null)
                    {
                        msg += "\n" + ex.InnerException.Message;
                        if (ex.InnerException.InnerException != null)
                        {
                            msg += "\n" + ex.InnerException.InnerException.Message;
                        }
                    }

                    eventlogservice.Add(new EventLog()
                    {
                        EventType       = "Error while assigning task for " + workitem.Id,
                        ApplicationName = "CR workflow",
                        Details         = msg + "\n" + ex.StackTrace,
                        RCB             = workitem.RUB,
                        RCT             = DateTime.Now,
                        RUT             = DateTime.Now,
                        Url             = "wf/assigntask"
                    });
                }
                catch
                {
                }
            }
        }
Ejemplo n.º 13
0
 internal CMException(CR result, String method)
     : base(method + " returned " + result.ToString())
 {
 }
Ejemplo n.º 14
0
 public override Task<MyClass_OpACRSResult> opACRSAsync(CR[] i, Ice.Current current)
 {
     return Task.FromResult<MyClass_OpACRSResult>(new MyClass_OpACRSResult(i, i));
 }
        private string ObtenerDatos()
        {
            string sResul = "";

            try
            {
                StringBuilder strBuilder = new StringBuilder();
                int           i          = 0;

                strBuilder.Append("<table id='tblDatos' class='texto' style='width: 396px;'>");
                strBuilder.Append("<colgroup><col style='width:396px;' /></colgroup>");
                if (hdnOpcion.Text == "Area")
                {
                    dr = Areas.Listado(int.Parse(Session["IDFICEPI"].ToString()), Session["ADMIN"].ToString());
                }
                else if (hdnOpcion.Text == "Tipo")
                {
                    dr = TIPO.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Entrada")
                {
                    dr = ENTRADA.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Alcance")
                {
                    dr = ALCANCE.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Proceso")
                {
                    dr = PROCESO.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Producto")
                {
                    dr = PRODUCTO.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Requisito")
                {
                    dr = REQUISITO.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "CR")
                {
                    dr = CR.Catalogo();
                }
                else if (hdnOpcion.Text == "CR_TEXTO")
                {
                    dr = CR.Catalogo(short.Parse(hdnIDArea.Text));
                }
                else if (hdnOpcion.Text == "Cliente")
                {
                    dr = Cliente.Catalogo(short.Parse(hdnIDArea.Text));
                }
                else if (hdnOpcion.Text == "Proveedor")
                {
                    dr = Proveedor.Catalogo(short.Parse(hdnIDArea.Text));
                }
                else if (hdnOpcion.Text == "Causa")
                {
                    dr = CAUSA.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Origen")
                {
                    dr = ORIGEN.Catalogo(null, short.Parse(hdnIDArea.Text), "", null, 4, 0);
                }
                else if (hdnOpcion.Text == "Coordinadores")
                {
                    dr = Areas.CoordinadoresArea(int.Parse(hdnIDArea.Text));
                }
                else if (hdnOpcion.Text == "Solicitantes")
                {
                    dr = Areas.SolicitantesArea(int.Parse(hdnIDArea.Text));
                }
                else if (hdnOpcion.Text == "Especialistas")
                {
                    dr = Areas.LeerTecnicosArea(int.Parse(hdnIDArea.Text));
                }
                else if (hdnOpcion.Text == "Deficiencias")
                {
                    dr = Areas.DeficienciasArea(int.Parse(hdnIDArea.Text));
                }

                while (dr.Read())
                {
                    //if (i % 2 == 0) strBuilder.Append("<tr class=FA ");
                    //else strBuilder.Append("<tr class=FB ");
                    i++;
                    strBuilder.Append("<tr ");
                    if (hdnOpcion.Text == "Cliente" || hdnOpcion.Text == "Proveedor" || hdnOpcion.Text == "CR_TEXTO")
                    {
                        strBuilder.Append("id='" + i.ToString() + "'");
                    }
                    else
                    {
                        strBuilder.Append("id='" + dr["ID"].ToString() + "'");
                    }
                    strBuilder.Append(" onclick='ms(this)' ondblclick='aceptarClick(this);' onmousemove='TTip(event);' style='cursor:pointer;height:16px'>");
                    //strBuilder.Append("<td width='15%'>" + (int.Parse(dr["ID"].ToString())).ToString("#,###,##0") + "</td>");

                    if (hdnOpcion.Text == "Cliente" || hdnOpcion.Text == "Proveedor" || hdnOpcion.Text == "CR_TEXTO")
                    {
                        strBuilder.Append("<td style='padding-left:5px'><label class=texto id='lbl" + i.ToString() + "' style='width:315px;text-overflow:ellipsis;overflow:hidden'");
                    }
                    else
                    {
                        strBuilder.Append("<td style='padding-left:5px'><label class=texto id='lbl" + dr["ID"].ToString() + "' style='width:315px;text-overflow:ellipsis;overflow:hidden'");
                    }
                    if (dr["DESCRIPCION"].ToString().Length > 80)
                    {
                        strBuilder.Append(" title='" + dr["DESCRIPCION"].ToString() + "'");
                    }
                    strBuilder.Append("><nobr class='NBR W395'>" + dr["DESCRIPCION"] + "</nobr></label></td></tr>");
                }

                dr.Close();
                dr.Dispose();

                strBuilder.Append("</table>");

                sResul = "OK@@" + strBuilder.ToString();
            }
            catch (Exception ex)
            {
                sResul = "Error@@" + Errores.mostrarError("Error al obtener los datos", ex);
            }
            return(sResul);
        }
Ejemplo n.º 16
0
		public virtual decimal? CalculateEmployeeCost(CR.EPActivity activity, int? employeeID, DateTime date)
		{
			decimal? cost;
			Rate employeeRate = GetEmployeeRate(activity.ProjectID, activity.ProjectTaskID, employeeID, date);

			if (employeeRate.Type == RateTypesAttribute.SalaryWithExemption && activity.TimeCardCD != null)
			{
				//Overtime is not applicable. Rate is prorated based on actual hours worked on the given week

				EPTimeCard timecard = PXSelect<EPTimeCard, Where<EPTimeCard.timeCardCD, Equal<Required<EPTimeCard.timeCardCD>>>>.Select(graph, activity.TimeCardCD);
				if (timecard.TotalSpentCalc <= employeeRate.RegularHours * 60)
                {
                    cost = employeeRate.RateByType / employeeRate.RegularHours;
                }
                else
                {
					cost = employeeRate.RateByType / (timecard.TotalSpentCalc / 60);
                }
			}
			else
			{
				cost = employeeRate.HourlyRate * GetOvertimeMultiplier(activity.EarningTypeID, (int)employeeID, date);
			}

			return cost;
		}
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsCallback)
        {
            //Para que se muestre la botonera, únicamente hay que indicar el número de botonera
            //y crear el manejador de eventos para la misma.
            Master.nBotonera           = 7;
            Master.Botonera.ItemClick += new ToolBarEventHandler(this.Botonera_Click);
            Master.bFuncionesLocales   = true;
            Master.TituloPagina        = "Maestro de plantillas";
            if (!Page.IsPostBack)
            {
                try
                {
                    this.lblNodo.InnerText = Estructura.getDefCorta(Estructura.sTipoElem.NODO);
                    this.lblNodo.Attributes.Add("title", Estructura.getDefLarga(Estructura.sTipoElem.NODO));

                    this.txtOrigen.Text = Request.QueryString["sOr"];
                    string sPlantAux = Request.QueryString["nIDPlant"];
                    if (sPlantAux != null)
                    {
                        this.hdnIDPlantilla.Text         = sPlantAux;
                        this.hdnIDPlantillaOriginal.Text = sPlantAux;
                        Session["IDPlant"] = sPlantAux;
                    }
                    else if (Session["IDPlant"] != null)
                    {
                        sPlantAux = Session["IDPlant"].ToString();
                        this.hdnIDPlantilla.Text         = sPlantAux;
                        this.hdnIDPlantillaOriginal.Text = sPlantAux;
                    }

                    string sTipo = Request.QueryString["sTipo"];
                    if (sTipo != null)
                    {
                        this.txtTipo.Text = sTipo;
                    }
                    else
                    {
                        this.txtTipo.Text = "E";
                    }

                    PlantProy objPlant = new PlantProy();
                    objPlant.Obtener(int.Parse(this.hdnIDPlantilla.Text));

                    this.hndCRActual.Text = Request.QueryString["nCR"];
                    CR objCR = new CR();
                    //int iNumEmpleado = int.Parse(HttpContext.Current.Session["IDFICEPI_PC_ACTUAL"].ToString());
                    int iNumEmpleado = int.Parse(HttpContext.Current.Session["UsuarioActual"].ToString());
                    this.cboCR.DataSource     = objCR.ObtenerCatalogoPlant(iNumEmpleado);
                    this.cboCR.DataTextField  = "sDesCR";
                    this.cboCR.DataValueField = "nIdCR";
                    this.cboCR.DataBind();

                    ListItem Elemento = new ListItem("", "-1");
                    this.cboCR.Items.Insert(0, Elemento);

                    this.txtDesPlantilla.Text = objPlant.descripcion;
                    if (objPlant.activo)
                    {
                        this.chkActivo.Checked = true;
                    }
                    else
                    {
                        this.chkActivo.Checked = false;
                    }
                    this.cboCR.SelectedValue = objPlant.codune.ToString();

                    this.cboAmbito.SelectedValue = objPlant.ambito;

                    this.txtObs.Text = objPlant.obs;
                    //Establezco los posibles valores del combo de ámbito
                    plEstablecerAmbitos();
                    //Establezco la modificabilidad de la plantilla
                    this.txtModificable.Text = flPlantillaModificable(objPlant.ambito);
                    if (this.txtModificable.Text == "T")
                    {
                        if (objPlant.ambito != "D")
                        {
                            cboCR.Enabled = false;
                        }
                        else
                        {
                            cboCR.Enabled = true;
                        }
                        this.txtDesPlantilla.Focus();
                    }
                }
                catch (Exception ex)
                {
                    Master.sErrores = Errores.mostrarError("Error al cargar la plantilla", ex);
                }
            }

            //1º Se indican (por este orden) la función a la que se va a devolver el resultado
            //   y la función que va a acceder al servidor
            string cbRespuesta = Page.ClientScript.GetCallbackEventReference(this, "arg", "RespuestaCallBack", "context", false);
            string cbLlamada   = "function RealizarCallBack(arg, context)" + "{" + cbRespuesta + ";" + "}";

            //2º Se "registra" la función que va a acceder al servidor.
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "RealizarCallBack", cbLlamada, true);
        }
    }
Ejemplo n.º 18
0
        private CR decode_CR()
        {
            push("CR");

            bool decoded = true;
            int s0 = index;
            var e0 = new List<Rule>();
            Rule rule;

            decoded = false;
            if (!decoded)
            {
                {
                    var e1 = new List<Rule>();
                    int s1 = index;
                    decoded = true;
                    if (decoded)
                    {
                        bool f1 = true;
                        int c1 = 0;
                        for (int i1 = 0; i1 < 1 && f1; i1++)
                        {
                            rule = decode_NumericValue("%x0D", "[\\x0D]", 1);
                            if ((f1 = rule != null))
                            {
                                e1.Add(rule);
                                c1++;
                            }
                        }
                        decoded = c1 == 1;
                    }
                    if (decoded)
                        e0.AddRange(e1);
                    else
                        index = s1;
                }
            }

            rule = null;
            if (decoded)
                rule = new CR(text.Substring(s0, index - s0), e0);
            else
                index = s0;

            pop("CR", decoded, index - s0);

            return (CR)rule;
        }
Ejemplo n.º 19
0
        public ICRBuilder Clear()
        {
            _value = base.ResetValue <CR>();

            return(this);
        }
Ejemplo n.º 20
0
        public void CDExampleTest07()
        {
            // Primary Code
            var burnCode = new CD<string>("284196006", "2.16.840.1.113883.6.96")
            {
                DisplayName = "Burn of Skin",
                CodeSystemName = "SNOMED-CT",
                CodeSystemVersion = "2009"
            };

            // Severity
            var severityQualifier = new CR<string>(
                new CV<String>("24112005", "2.16.840.1.113883.96")
                {
                    DisplayName = "Severity"
                },
                new CD<String>("24484000", "2.16.840.1.113883.96")
                {
                    DisplayName = "Severe"
                }
                );

            // Finding site and severity applies to primary code
            burnCode.Qualifier = new LIST<CR<string>>()
            {
                severityQualifier
            };

            burnCode.NullFlavor = null;

            Assert.IsTrue(burnCode.Validate());
        }
Ejemplo n.º 21
0
        public void CDExampleTest01()
        {
            // Primary Code
            var burnCode = new CD<string>("284196006", "2.16.840.1.113883.6.96")
            {
                DisplayName = "Burn of Skin",
                CodeSystemName = "SNOMED-CT",
                CodeSystemVersion = "2009"
            };

            // Severity
            var severityQualifier = new CR<string>(
                new CV<String>("24112005", "2.16.840.1.113883.96"){
                    DisplayName = "Severity"
                },
                new CD<String>("24484000", "2.16.840.1.113883.96"){
                    DisplayName = "Severe"
                }
                );

            // Finding Site
            var findingSiteQualifier = new CR<String>(
                new CV<String>("363698007", "2.16.840.1.113883.96")
                {
                    DisplayName = "Finding Site"
                },
                new CD<String>("24484000", "2.16.840.1.113883.96")
                {
                    DisplayName = "Skin between fourth and fifth toes"
                }
            );

            // Laterality
            var lateralityQualifier = new CR<String>(
                new CV<String>("272741003", "2.16.840.1.113883.96") { DisplayName = "Laterality" },
                new CD<String>("77771000", "2.16.840.1.113883.96") { DisplayName = "Left Side" }
                );

            // Laterality applies to the finding site
            findingSiteQualifier.Value.Qualifier = new LIST<CR<string>>(){
                lateralityQualifier };

            // Finding site and severity applies to primary code
            burnCode.Qualifier = new LIST<CR<string>>()
            {
                severityQualifier,
                findingSiteQualifier
            };

            burnCode.NullFlavor = null;

            Assert.IsTrue(burnCode.Validate());
        }
Ejemplo n.º 22
0
        public static void Main()
        {
            string decryptedPassword = string.Empty;

            decryptedPassword = CR.DS("yyEq0Uvvhq2uQOcWG8peLoeRQehqip/fKdeG/kjEVb4=");
            Console.WriteLine(decryptedPassword);
            //checked
            //{
            //	try
            //	{
            //                 if (MyProject.Application.CommandLineArgs.Count != 1)
            //                 {
            //                     Console.WriteLine("Invalid number of command line arguments");
            //                 }
            //                 else if (!File.Exists(MyProject.Application.CommandLineArgs[0]))
            //                 {
            //                     Console.WriteLine("Specified config file does not exist");
            //                 }
            //                 else if (!File.Exists("HqkDbImport.exe"))
            //                 {
            //                     Console.WriteLine("Please ensure the optional database import module is installed");
            //                 }
            //                 else
            //                 {
            //                     LdapSearchSettings ldapSearchSettings = new LdapSearchSettings();
            //                     string[] array = File.ReadAllLines(MyProject.Application.CommandLineArgs[0]);
            //                     foreach (string text in array)
            //                     {
            //                         if (text.StartsWith("Domain=", StringComparison.CurrentCultureIgnoreCase))
            //                         {
            //                             ldapSearchSettings.Domain = text.Substring(text.IndexOf('=') + 1);
            //                         }
            //                         else if (text.StartsWith("User="******"Password="******"Performing LDAP query...");
            //			List<string> list = ldap.FindUsers();
            //			Console.WriteLine(Conversions.ToString(list.Count) + " user accounts found. Importing to database...");
            //			try
            //			{
            //				foreach (string text2 in list)
            //				{
            //					Console.WriteLine(text2);
            //					Process.Start("HqkDbImport.exe /ImportLdapUser " + text2);
            //				}
            //			}
            //			finally
            //			{
            //				List<string>.Enumerator enumerator;
            //				((IDisposable)enumerator).Dispose();
            //			}
            //		}
            //	}
            //	catch (Exception ex)
            //	{
            //		Console.WriteLine("Unexpected error: " + ex.Message);
            //	}
            //}
        }
Ejemplo n.º 23
0
		public static int? GetContractLaborClassID(PXGraph graph, CR.EPActivity activity)
		{
			EPContractRate matrix =
				PXSelectJoin<
					EPContractRate
					, InnerJoin<CR.CRCase, On<CR.CRCase.contractID, Equal<EPContractRate.contractID>>
						, InnerJoin<EPEmployee, On<EPContractRate.employeeID, Equal<EPEmployee.bAccountID>>>
						>
					, Where<
						CR.CRCase.noteID, Equal<Required<CR.EPActivity.refNoteID>>
						, And<EPContractRate.earningType, Equal<Required<CR.EPActivity.earningTypeID>>
							, And<EPEmployee.userID, Equal<Required<CR.EPActivity.owner>>>
							>
						>
					>.Select(graph, new object[] {activity.RefNoteID, activity.EarningTypeID, activity.Owner});
			if (matrix == null)
				matrix =
					PXSelectJoin<
						EPContractRate
						, InnerJoin<CR.CRCase, On<CR.CRCase.contractID, Equal<EPContractRate.contractID>>>
						, Where<
							CR.CRCase.noteID, Equal<Required<CR.EPActivity.refNoteID>>
							, And<EPContractRate.earningType, Equal<Required<CR.EPActivity.earningTypeID>>
								, And<EPContractRate.employeeID, IsNull>
								>
							>
						>.Select(graph, new object[] {activity.RefNoteID, activity.EarningTypeID});
			if (matrix != null)
				return matrix.LabourItemID;
			else
				return null;
		}
Ejemplo n.º 24
0
        private void ParseConfig()
        {
            try {
                this.SpiChannel    = (SpiChannel)Pi.Spi.GetProperty(this.config["spichan"]);
                this.PinChipSelect = (GpioPin)Pi.Gpio[Int32.Parse(this.config["pin_sspin"])]; //Physical pin 24, BCM pin  8, Wiring Pi pin 10 (SPI0 CE0)
                this.PinReset      = (GpioPin)Pi.Gpio[Int32.Parse(this.config["pin_rst"])];   //Physical pin 29, BCM pin  5, Wiring Pi pin 21 (GPCLK1)
                if (this.config.ContainsKey("frequency0"))
                {
                    this._radioEnabled[0]   = true;
                    this._radioFrequency[0] = UInt32.Parse(this.config["frequency0"]);
                }
                if (this.config.ContainsKey("frequency1"))
                {
                    this._radioEnabled[1]   = true;
                    this._radioFrequency[1] = UInt32.Parse(this.config["frequency1"]);
                }
                for (Byte i = 0; i < 10; i++)
                {
                    if (this.config.ContainsKey("interface" + i + "frequency"))
                    {
                        Int32 offset = Int32.Parse(this.config["interface" + i + "frequency"]);
                        if (offset >= -500000 && offset <= 500000)
                        {
                            this._interfaceFrequency[i] = offset;
                        }
                        else
                        {
                            throw new ArgumentException("interface" + i + "frequency: Offset " + offset + " is not allowed!");
                        }
                        this._interfaceEnabled[i] = true;
                        Byte chain = Byte.Parse(this.config["interface" + i + "chain"]);
                        if (chain == 0)
                        {
                            this._interfaceChain[i] = Reciever.Chain0;
                        }
                        else if (chain == 1)
                        {
                            this._interfaceChain[i] = Reciever.Chain1;
                        }
                        else
                        {
                            throw new ArgumentException("interface" + i + "chain: Chain " + chain + " is not allowed!");
                        }
                    }
                }

                Int32 lbwc = Int32.Parse(this.config["lorabandwith"]);
                this._loraBandwidth = lbwc <= 7800 ? BW.BW_7K8HZ : lbwc <= 15600 ? BW.BW_15K6HZ : lbwc <= 31250 ? BW.BW_31K2HZ : lbwc <= 62500 ? BW.BW_62K5HZ : lbwc <= 125000 ? BW.BW_125KHZ : lbwc <= 250000 ? BW.BW_250KHZ : BW.BW_500KHZ;

                Int32 sbwc = Int32.Parse(this.config["sendbw"]);
                this._loraSendBandwidth = sbwc <= 7800 ? BW.BW_7K8HZ : sbwc <= 15600 ? BW.BW_15K6HZ : sbwc <= 31250 ? BW.BW_31K2HZ : sbwc <= 62500 ? BW.BW_62K5HZ : sbwc <= 125000 ? BW.BW_125KHZ : sbwc <= 250000 ? BW.BW_250KHZ : BW.BW_500KHZ;

                Byte sf = Byte.Parse(this.config["loraspreadingfactor"]);
                this._loraSpreadingFactor = sf <= 7 ? SF.DR_LORA_SF7 : sf <= 8 ? SF.DR_LORA_SF8 : sf <= 9 ? SF.DR_LORA_SF9 : sf <= 10 ? SF.DR_LORA_SF10 : sf <= 11 ? SF.DR_LORA_SF11 : SF.DR_LORA_SF12;

                Byte ssf = Byte.Parse(this.config["sendsf"]);
                this._loraSendSpreadingFactor = ssf <= 7 ? SF.DR_LORA_SF7 : ssf <= 8 ? SF.DR_LORA_SF8 : ssf <= 9 ? SF.DR_LORA_SF9 : ssf <= 10 ? SF.DR_LORA_SF10 : ssf <= 11 ? SF.DR_LORA_SF11 : SF.DR_LORA_SF12;

                Int32 fbwc = Int32.Parse(this.config["fskbandwith"]);
                this._fskBandwidth = fbwc <= 7800 ? BW.BW_7K8HZ : fbwc <= 15600 ? BW.BW_15K6HZ : fbwc <= 31250 ? BW.BW_31K2HZ : fbwc <= 62500 ? BW.BW_62K5HZ : fbwc <= 125000 ? BW.BW_125KHZ : fbwc <= 250000 ? BW.BW_250KHZ : BW.BW_500KHZ;

                this._loraSendCodeRate = Byte.Parse(this.config["sendcr"]) switch {
                    5 => CR.CR_LORA_4_5,
                    6 => CR.CR_LORA_4_6,
                    7 => CR.CR_LORA_4_7,
                    8 => CR.CR_LORA_4_8,
                    _ => throw new Exception("sendcr only can 5-8")
                };

                this._loraSendPreeamble = Byte.Parse(this.config["sendpreamble"]);

                this._fskDatarate = UInt32.Parse(this.config["fskdatarate"]);

                this._CrcEnabled = Boolean.Parse(this.config["crc"]);

                this._lorawan_public = Boolean.Parse(this.config["lorawan"]);

                Console.WriteLine("Fraunhofer.Fit.Iot.Lora.lib.Ic880a.Ic880a.ParseConfig(): board configuration: lorawan_public:" + this._lorawan_public + ", clksrc:1");
                for (Byte i = 0; i < 2; i++)
                {
                    Console.WriteLine("Fraunhofer.Fit.Iot.Lora.lib.Ic880a.Ic880a.ParseConfig(): rf_chain " + i + " configuration; en:" + this._radioEnabled[i] + " freq:" + this._radioFrequency[i] + " rssi_offset:" + this._rf_rssi_offset[i] + " radio_type:" + this._rf_radio_type[i] + " tx_enable:" + this._radioEnableTx[i] + " tx_notch_freq:" + this._rf_tx_notch_freq[i]);
                }
                for (Byte i = 0; i < 8; i++)
                {
                    Console.WriteLine("Fraunhofer.Fit.Iot.Lora.lib.Ic880a.Ic880a.ParseConfig(): LoRa 'multi' if_chain " + i + " configuration; en:" + this._interfaceEnabled[i] + " freq:" + this._interfaceFrequency[i] + " SF_mask:0x7E");
                }
                Console.WriteLine("Fraunhofer.Fit.Iot.Lora.lib.Ic880a.Ic880a.ParseConfig(): LoRa 'std' if_chain 8 configuration; en:" + this._interfaceEnabled[8] + " freq:" + this._interfaceFrequency[8] + " bw:" + this._loraBandwidth + " dr:" + this._loraSpreadingFactor);
                Console.WriteLine("Fraunhofer.Fit.Iot.Lora.lib.Ic880a.Ic880a.ParseConfig(): FSK if_chain 9 configuration; en:" + this._interfaceEnabled[9] + " freq:" + this._interfaceFrequency[9] + " bw:" + this._fskBandwidth + " dr:" + this._fskDatarate + " (" + this._fskDatarate * 2 + " real dr) sync:0xC194C1");
            } catch (Exception e) {
                throw new ArgumentException("Some Argument is not set in settings.ini: " + e.Message);
            }
        }
Ejemplo n.º 25
0
 public static extern int CM_MapCrToWin32Err(
     CR CmReturnCode,
     int DefaultErr
     );
Ejemplo n.º 26
0
 public override void ice_response(CR[] r, CR[] o)
 {
     System.Collections.IEnumerator eo = o.GetEnumerator();
     System.Collections.IEnumerator er = r.GetEnumerator();
     foreach(CR obj in _i)
     {
         eo.MoveNext();
         er.MoveNext();
         test(obj.v.i == ((CR)eo.Current).v.i);
         test(obj.v.i == ((CR)er.Current).v.i);
     }
     callback.called();
 }
Ejemplo n.º 27
0
        public void Reenumerate(UInt32 flags)
        {
            CR ret = SetupApi.CM_Reenumerate_DevNode(DevInst, flags);

            CMException.Throw(ret, "CM_Reenumerate_DevNode");
        }
Ejemplo n.º 28
0
    protected void Button_find_diamonds_Click(object sender, EventArgs e)
    {
        List <string> list_shapes   = new List <string>();
        List <string> list_clarity  = new List <string>();
        List <string> list_color    = new List <string>();
        List <string> list_cut      = new List <string>();
        List <string> list_polish   = new List <string>();
        List <string> list_symmetry = new List <string>();
        List <string> list_lab      = new List <string>();
        double        weightMin;
        double        weightMax;
        double        priceMin;
        double        priceMax;
        string        name;


        #region SHAPE
        List <string> list_shapes_ = s.readfromyDS("Shape");
        foreach (var S in list_shapes_)
        {
            var chk_SHAPE = (HtmlInputCheckBox)SAHPE.FindControl("ShapeCB_" + S.ToString());


            if (chk_SHAPE.Checked == true)
            {
                list_shapes.Add(S.ToString());
            }
        }


        #endregion

        #region Weight

        HtmlInputGenericControl weightMin_control = (HtmlInputGenericControl)WEIGHT.FindControl("weightMin");
        if (weightMin_control.Value == "".ToString())
        {
            weightMin_control.Value = "0.1";
        }
        weightMin = Convert.ToDouble(weightMin_control.Value);

        HtmlInputGenericControl weightMax_control = (HtmlInputGenericControl)WEIGHT.FindControl("weightMax");
        if (weightMax_control.Value == "".ToString())
        {
            weightMax_control.Value = "0.1";
        }
        weightMax = Convert.ToDouble(weightMax_control.Value);

        #endregion

        #region Price

        HtmlInputGenericControl priceMin_control = (HtmlInputGenericControl)WEIGHT.FindControl("priceMin");
        if (priceMin_control.Value == "".ToString())
        {
            priceMin_control.Value = "1";
        }
        priceMin = Convert.ToDouble(priceMin_control.Value.ToString());

        HtmlInputGenericControl priceMax_control = (HtmlInputGenericControl)WEIGHT.FindControl("priceMax");
        if (priceMax_control.Value == "".ToString())
        {
            priceMax_control.Value = "1";
        }
        priceMax = Convert.ToDouble(priceMax_control.Value.ToString());

        #endregion

        #region CLARITY
        List <string> list_clarity_ = s.readfromyDS("Clarity");
        foreach (var C in list_clarity_)
        {
            CheckBox chk_CLARITY = (CheckBox)CLARITY.FindControl("ClarityCB_" + C.ToString());
            if (chk_CLARITY.Checked == true)
            {
                list_clarity.Add(C.ToString());
            }
        }

        #endregion

        #region COLOR
        List <string> list_color_ = s.readfromyDS("Color");
        foreach (var CR in list_color_)
        {
            CheckBox chk_COLOR = (CheckBox)COLOR.FindControl("ColorCB_" + CR.ToString());
            if (chk_COLOR.Checked == true)
            {
                list_color.Add(CR.ToString());
            }
        }

        #endregion

        #region CUT
        List <string> list_cut_ = s.readfromyDS("Cut");
        foreach (var CU_ in list_cut_)
        {
            CheckBox chk_CUT = (CheckBox)CUT.FindControl("CutCB_" + CU_.ToString());
            if (chk_CUT.Checked == true)
            {
                list_cut.Add(CU_.ToString());
            }
        }
        #endregion

        #region POLISH
        List <string> list_polish_ = s.readfromyDS("Polish");
        foreach (var P in list_polish_)
        {
            CheckBox chk_P = (CheckBox)POLISH.FindControl("PolishCB_" + P.ToString());
            if (chk_P.Checked == true)
            {
                list_polish.Add(P.ToString());
            }
        }
        #endregion

        #region SYMMETRY
        List <string> list_symmetry_ = s.readfromyDS("Symmetry");
        foreach (var SYM in list_symmetry_)
        {
            CheckBox chk_SYM = (CheckBox)SYMMETRY.FindControl("SymmetryCB_" + SYM.ToString());
            if (chk_SYM.Checked == true)
            {
                list_symmetry.Add(SYM.ToString());
            }
        }

        #endregion

        #region LAB
        List <string> list_lab_ = s.readfromyDS("Lab");
        foreach (var LAB_ in list_lab_)
        {
            CheckBox chk_LAB = (CheckBox)LAB.FindControl("LabCB_" + LAB_.ToString());
            if (chk_LAB.Checked == true)
            {
                list_lab.Add(LAB_.ToString());
            }
        }

        #endregion

        #region Name

        HtmlInputText txt_name = (HtmlInputText)NAME.FindControl("Search_By_ID".ToString());
        name = txt_name.Value;

        #endregion

        addproducts_after_filter(list_shapes,
                                 list_clarity,
                                 list_color,
                                 list_cut,
                                 list_polish,
                                 list_symmetry,
                                 list_lab,
                                 weightMin,
                                 weightMax,
                                 priceMin,
                                 priceMax,
                                 name);
    }
Ejemplo n.º 29
0
 public void CDQualifierCodeNullFlavorTest()
 {
     CD<String> cd = new CD<String>();
     cd.Code = "284196006";
     cd.NullFlavor = MARC.Everest.DataTypes.NullFlavor.NoInformation;
     CR<String> severity = new CR<String>();
     severity.Name = new CD<string>();
     severity.Value = new CD<string>();
     cd.Qualifier = new LIST<CR<string>>();
     cd.Qualifier.Add(severity);
     severity.Name.Code = "246112005";
     severity.Name.CodeSystem = "2.16.840.1.113883.6.96";
     severity.Name.CodeSystemName = "SNOMED CT";
     severity.Name.DisplayName = "Severity";
     severity.Value.Code = "24484000";
     severity.Value.CodeSystem = "2.16.840.1.113883.6.96";
     severity.Value.CodeSystemName = "SNOMED CT";
     severity.Value.DisplayName = "Severe";
     CR<String> findingsite = new CR<String>();
     findingsite.Name = new CD<string>();
     findingsite.Value = new CD<string>();
     cd.Qualifier.Add(findingsite);
     findingsite.Name.Code = "363698007";
     findingsite.Name.CodeSystem = "2.16.840.1.113883.6.96";
     findingsite.Name.CodeSystemName = "SNOMED CT";
     findingsite.Name.DisplayName = "Finding site";
     findingsite.Value.Code = "113185004";
     findingsite.Value.CodeSystem = "2.16.840.1.113883.6.96";
     findingsite.Value.CodeSystemName = "SNOMED CT";
     findingsite.Value.DisplayName = "Skin between Fourth and Fifth Toes";
     CR<String> laterality = new CR<String>();
     laterality.Name = new CD<string>();
     laterality.Value = new CD<string>();
     findingsite.Value.Qualifier = new LIST<CR<string>>();
     findingsite.Value.Qualifier.Add(laterality);
     laterality.Name.Code = "272741003";
     laterality.Name.CodeSystem = "2.16.840.1.113883.6.96";
     laterality.Name.CodeSystemName = "SNOMED CT";
     laterality.Name.DisplayName = "Laterality";
     laterality.Value.Code = "7771000";
     laterality.Value.CodeSystem = "2.16.840.1.113883.6.96";
     laterality.Value.CodeSystemName = "SNOMED CT";
     laterality.Value.DisplayName = "Left";
     Assert.IsFalse(cd.Validate());
 }
Ejemplo n.º 30
0
 public void Add_IgnoringNonStringNonByteArray()
 {
     byte[] array = LF.Add(TEXT_DATA, 1, CR, DateTime.Now, 10.5, 785m, new UnitTest(), FF);
     ShouldEqualWithDiff(array.ToUTF8(), $"{LF.ToUTF8()}{TEXT_DATA}{CR.ToUTF8()}{FF.ToUTF8()}");
 }
Ejemplo n.º 31
0
 public void CDCodeQualifierTest()
 {
       CD<String> cd = new CD<String>();
       cd.Code = null;
       CR<String> severity = new CR<String>();
       severity.Name = new CD<string>();
       severity.Value = new CD<string>();
       severity.Name.Code = "23543256";
       severity.Name.CodeSystem = "13.21.432.45";
       severity.Value.Code = "2345235";
       severity.Value.CodeSystem = "23.132532.532";
       cd.Qualifier = new LIST<CR<string>>();
       cd.Qualifier.Add(severity);
       Assert.IsFalse(cd.Validate());
 }
Ejemplo n.º 32
0
	    public virtual int? GetLaborClass(CR.EPActivity activity)
		{
			int? laborClassID = null;

			CR.CRCase refCase = PXSelect<CR.CRCase, Where<CR.CRCase.noteID, Equal<Required<CR.EPActivity.refNoteID>>>>.Select(graph, activity.RefNoteID);

			if (refCase != null)
			{
				CR.CRCaseClass caseClass = (CR.CRCaseClass)PXSelectorAttribute.Select<CR.CRCase.caseClassID>(graph.Caches[typeof(CR.CRCase)], refCase);
				laborClassID = CR.CRCaseClassLaborMatrix.GetLaborClassID(graph, caseClass.CaseClassID, activity.EarningTypeID);
			}

			EPEmployee employee = PXSelect<EPEmployee>.Search<EPEmployee.userID>(graph, activity.Owner);
			if (employee == null)
				throw new Exception(Messages.EmptyEmployeeID);

			if (laborClassID == null && activity.ProjectID != null && employee.BAccountID != null)
				laborClassID = EPContractRate.GetProjectLaborClassID(graph, (int)activity.ProjectID, (int)employee.BAccountID, activity.EarningTypeID);

			if (laborClassID == null)
				laborClassID = EPEmployeeClassLaborMatrix.GetLaborClassID(graph, employee.BAccountID, activity.EarningTypeID);

			if (laborClassID == null)
				laborClassID = employee.LabourItemID;

			return laborClassID;
		}
Ejemplo n.º 33
0
    internal static void twoways(Ice.Communicator communicator, Test.MyClassPrx p)
    {
        {
            byte[] i = new byte[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (byte)c;
            }
            byte[] o;
            byte[] r;

            r = p.opAByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <byte> i = new List <byte>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((byte)c);
            }
            List <byte> o;
            List <byte> r;

            r = p.opLByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <byte> i = new LinkedList <byte>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((byte)c);
            }
            LinkedList <byte> o;
            LinkedList <byte> r;

            r = p.opKByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <byte> i = new Queue <byte>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((byte)c);
            }
            Queue <byte> o;
            Queue <byte> r;

            r = p.opQByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <byte> i = new Stack <byte>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((byte)c);
            }
            Stack <byte> o;
            Stack <byte> r;

            r = p.opSByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            bool[] i = new bool[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = c % 1 == 1;
            }
            bool[] o;
            bool[] r;

            r = p.opABoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <bool> i = new List <bool>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(c % 1 == 1);
            }
            List <bool> o;
            List <bool> r;

            r = p.opLBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <bool> i = new LinkedList <bool>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast(c % 1 == 1);
            }
            LinkedList <bool> o;
            LinkedList <bool> r;

            r = p.opKBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <bool> i = new Queue <bool>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue(c % 1 == 1);
            }
            Queue <bool> o;
            Queue <bool> r;

            r = p.opQBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <bool> i = new Stack <bool>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push(c % 1 == 1);
            }
            Stack <bool> o;
            Stack <bool> r;

            r = p.opSBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            short[] i = new short[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (short)c;
            }
            short[] o;
            short[] r;

            {
                r = p.opAShortS(i, out o);
            }
            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <short> i = new List <short>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((short)c);
            }
            List <short> o;
            List <short> r;

            r = p.opLShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <short> i = new LinkedList <short>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((short)c);
            }
            LinkedList <short> o;
            LinkedList <short> r;

            r = p.opKShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <short> i = new Queue <short>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((short)c);
            }
            Queue <short> o;
            Queue <short> r;

            r = p.opQShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <short> i = new Stack <short>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((short)c);
            }
            Stack <short> o;
            Stack <short> r;

            r = p.opSShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            int[] i = new int[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (int)c;
            }
            int[] o;
            int[] r;

            r = p.opAIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <int> i = new List <int>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((int)c);
            }
            List <int> o;
            List <int> r;

            r = p.opLIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <int> i = new LinkedList <int>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((int)c);
            }
            LinkedList <int> o;
            LinkedList <int> r;

            r = p.opKIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <int> i = new Queue <int>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((int)c);
            }
            Queue <int> o;
            Queue <int> r;

            r = p.opQIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <int> i = new Stack <int>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((int)c);
            }
            Stack <int> o;
            Stack <int> r;

            r = p.opSIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            long[] i = new long[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (long)c;
            }
            long[] o;
            long[] r;

            r = p.opALongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <long> i = new List <long>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((long)c);
            }
            List <long> o;
            List <long> r;

            r = p.opLLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <long> i = new LinkedList <long>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((long)c);
            }
            LinkedList <long> o;
            LinkedList <long> r;

            r = p.opKLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <long> i = new Queue <long>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((long)c);
            }
            Queue <long> o;
            Queue <long> r;

            r = p.opQLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <long> i = new Stack <long>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((long)c);
            }
            Stack <long> o;
            Stack <long> r;

            r = p.opSLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            float[] i = new float[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (float)c;
            }
            float[] o;
            float[] r;

            r = p.opAFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <float> i = new List <float>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((float)c);
            }
            List <float> o;
            List <float> r;

            r = p.opLFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <float> i = new LinkedList <float>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((float)c);
            }
            LinkedList <float> o;
            LinkedList <float> r;

            r = p.opKFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <float> i = new Queue <float>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((float)c);
            }
            Queue <float> o;
            Queue <float> r;

            r = p.opQFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <float> i = new Stack <float>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((float)c);
            }
            Stack <float> o;
            Stack <float> r;

            r = p.opSFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            double[] i = new double[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (double)c;
            }
            double[] o;
            double[] r;

            r = p.opADoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <double> i = new List <double>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((double)c);
            }
            List <double> o;
            List <double> r;

            r = p.opLDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <double> i = new LinkedList <double>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((double)c);
            }
            LinkedList <double> o;
            LinkedList <double> r;

            r = p.opKDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <double> i = new Queue <double>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((double)c);
            }
            Queue <double> o;
            Queue <double> r;

            r = p.opQDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <double> i = new Stack <double>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((double)c);
            }
            Stack <double> o;
            Stack <double> r;

            r = p.opSDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            string[] i = new string[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = c.ToString();
            }
            string[] o;
            string[] r;

            r = p.opAStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <string> i = new List <string>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(c.ToString());
            }
            List <string> o;
            List <string> r;

            r = p.opLStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <string> i = new LinkedList <string>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast(c.ToString());
            }
            LinkedList <string> o;
            LinkedList <string> r;

            r = p.opKStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <string> i = new Queue <string>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue(c.ToString());
            }
            Queue <string> o;
            Queue <string> r;

            r = p.opQStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <string> i = new Stack <string>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push(c.ToString());
            }
            Stack <string> o;
            Stack <string> r;

            r = p.opSStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Ice.Value[] i = new CV[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = new CV(c);
            }
            Ice.Value[] o;
            Ice.Value[] r;

            r = p.opAObjectS(i, out o);

            System.Collections.IEnumerator eo = o.GetEnumerator();
            System.Collections.IEnumerator er = r.GetEnumerator();
            foreach (CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            var i = new List <Ice.Value>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            List <Ice.Value> o;
            List <Ice.Value> r;

            r = p.opLObjectS(i, out o);

            var eo = o.GetEnumerator();
            var er = r.GetEnumerator();
            foreach (CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = communicator.stringToProxy(c.ToString());
            }
            Ice.ObjectPrx[] o;
            Ice.ObjectPrx[] r;

            r = p.opAObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <Ice.ObjectPrx> i = new List <Ice.ObjectPrx>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(communicator.stringToProxy(c.ToString()));
            }
            List <Ice.ObjectPrx> o;
            List <Ice.ObjectPrx> r;

            r = p.opLObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <Ice.ObjectPrx> i = new LinkedList <Ice.ObjectPrx>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast(communicator.stringToProxy(c.ToString()));
            }
            LinkedList <Ice.ObjectPrx> o;
            LinkedList <Ice.ObjectPrx> r;

            r = p.opKObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <Ice.ObjectPrx> i = new Queue <Ice.ObjectPrx>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue(communicator.stringToProxy(c.ToString()));
            }
            Queue <Ice.ObjectPrx> o;
            Queue <Ice.ObjectPrx> r;

            r = p.opQObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <Ice.ObjectPrx> i = new Stack <Ice.ObjectPrx>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push(communicator.stringToProxy(c.ToString()));
            }
            Stack <Ice.ObjectPrx> o;
            Stack <Ice.ObjectPrx> r;

            r = p.opSObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            S[] i = new S[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c].i = c;
            }
            S[] o;
            S[] r;

            r = p.opAStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <S> i = new List <S>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(new S(c));
            }
            List <S> o;
            List <S> r;

            r = p.opLStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <S> i = new LinkedList <S>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast(new S(c));
            }
            LinkedList <S> o;
            LinkedList <S> r;

            r = p.opKStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <S> i = new Queue <S>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue(new S(c));
            }
            Queue <S> o;
            Queue <S> r;

            r = p.opQStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <S> i = new Stack <S>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push(new S(c));
            }
            Stack <S> o;
            Stack <S> r;


            r = p.opSStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            SD[] i = new SD[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = new SD(c);
            }
            SD[] o;
            SD[] r;

            r = p.opAStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <SD> i = new List <SD>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(new SD(c));
            }
            List <SD> o;
            List <SD> r;

            r = p.opLStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <SD> i = new LinkedList <SD>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast(new SD(c));
            }
            LinkedList <SD> o;
            LinkedList <SD> r;

            r = p.opKStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <SD> i = new Queue <SD>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue(new SD(c));
            }
            Queue <SD> o;
            Queue <SD> r;

            r = p.opQStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <SD> i = new Stack <SD>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push(new SD(c));
            }
            Stack <SD> o;
            Stack <SD> r;


            r = p.opSStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CV[] i = new CV[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = new CV(c);
            }
            CV[] o;
            CV[] r;

            r = p.opACVS(i, out o);

            System.Collections.IEnumerator eo = o.GetEnumerator();
            System.Collections.IEnumerator er = r.GetEnumerator();
            foreach (CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            List <CV> i = new List <CV>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            List <CV> o;
            List <CV> r;

            r = p.opLCVS(i, out o);

            IEnumerator <CV> eo = o.GetEnumerator();
            IEnumerator <CV> er = r.GetEnumerator();
            foreach (CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == eo.Current.i);
                test(obj.i == er.Current.i);
            }
        }

        {
            CR[] i = new CR[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = new CR(new CV(c));
            }
            CR[] o;
            CR[] r;

            r = p.opACRS(i, out o);

            System.Collections.IEnumerator eo = o.GetEnumerator();
            System.Collections.IEnumerator er = r.GetEnumerator();
            foreach (CR obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.v.i == ((CR)eo.Current).v.i);
                test(obj.v.i == ((CR)er.Current).v.i);
            }
        }

        {
            List <CR> i = new List <CR>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(new CR(new CV(c)));
            }
            List <CR> o;
            List <CR> r;

            r = p.opLCRS(i, out o);

            IEnumerator <CR> eo = o.GetEnumerator();
            IEnumerator <CR> er = r.GetEnumerator();
            foreach (CR obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.v.i == eo.Current.v.i);
                test(obj.v.i == er.Current.v.i);
            }
        }

        {
            En[] i = new En[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = (En)(c % 3);
            }
            En[] o;
            En[] r;

            r = p.opAEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <En> i = new List <En>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add((En)(c % 3));
            }
            List <En> o;
            List <En> r;

            r = p.opLEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <En> i = new LinkedList <En>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast((En)(c % 3));
            }
            LinkedList <En> o;
            LinkedList <En> r;

            r = p.opKEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <En> i = new Queue <En>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue((En)(c % 3));
            }
            Queue <En> o;
            Queue <En> r;

            r = p.opQEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <En> i = new Stack <En>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push((En)(c % 3));
            }
            Stack <En> o;
            Stack <En> r;

            r = p.opSEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CVPrx[] i = new CVPrx[_length];
            for (int c = 0; c < _length; ++c)
            {
                i[c] = CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()));
            }
            CVPrx[] o;
            CVPrx[] r;

            r = p.opACVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List <CVPrx> i = new List <CVPrx>(_length);
            for (int c = 0; c < _length; ++c)
            {
                i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            List <CVPrx> o;
            List <CVPrx> r;

            r = p.opLCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList <CVPrx> i = new LinkedList <CVPrx>();
            for (int c = 0; c < _length; ++c)
            {
                i.AddLast(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            LinkedList <CVPrx> o;
            LinkedList <CVPrx> r;

            r = p.opKCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue <CVPrx> i = new Queue <CVPrx>();
            for (int c = 0; c < _length; ++c)
            {
                i.Enqueue(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            Queue <CVPrx> o;
            Queue <CVPrx> r;

            r = p.opQCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack <CVPrx> i = new Stack <CVPrx>();
            for (int c = 0; c < _length; ++c)
            {
                i.Push(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            Stack <CVPrx> o;
            Stack <CVPrx> r;

            r = p.opSCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Custom <int> i = new Custom <int>();
            for (int c = 0; c < _length; ++c)
            {
                i.Add(c);
            }
            Custom <int> o;
            Custom <int> r;

            r = p.opCustomIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Custom <CV> i = new Custom <CV>();
            for (int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            i.Add(null);
            Custom <CV> o;
            Custom <CV> r;

            r = p.opCustomCVS(i, out o);

            IEnumerator <CV> eo = (IEnumerator <CV>)o.GetEnumerator();
            IEnumerator <CV> er = (IEnumerator <CV>)r.GetEnumerator();
            foreach (CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                if (obj == null)
                {
                    test(eo.Current == null);
                    test(er.Current == null);
                }
                else
                {
                    test(obj.i == eo.Current.i);
                    test(obj.i == er.Current.i);
                }
            }
        }

        {
            Custom <Custom <int> > i = new Custom <Custom <int> >();
            for (int c = 0; c < _length; ++c)
            {
                Custom <int> inner = new Custom <int>();
                for (int j = 0; j < c; ++j)
                {
                    inner.Add(j);
                }
                i.Add(inner);
            }
            Custom <Custom <int> > o;
            Custom <Custom <int> > r;

            r = p.opCustomIntSS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Custom <Custom <CV> > i = new Custom <Custom <CV> >();
            for (int c = 0; c < _length; ++c)
            {
                Custom <CV> inner = new Custom <CV>();
                for (int j = 0; j < c; ++j)
                {
                    inner.Add(new CV(j));
                }
                i.Add(inner);
            }
            Custom <Custom <CV> > o;
            Custom <Custom <CV> > r;

            r = p.opCustomCVSS(i, out o);

            IEnumerator <Custom <CV> > eo = (IEnumerator <Custom <CV> >)o.GetEnumerator();
            IEnumerator <Custom <CV> > er = (IEnumerator <Custom <CV> >)r.GetEnumerator();
            foreach (Custom <CV> s in i)
            {
                eo.MoveNext();
                er.MoveNext();
                IEnumerator <CV> io = (IEnumerator <CV>)eo.Current.GetEnumerator();
                IEnumerator <CV> ir = (IEnumerator <CV>)er.Current.GetEnumerator();
                foreach (CV obj in s)
                {
                    io.MoveNext();
                    ir.MoveNext();
                    if (obj == null)
                    {
                        test(io.Current == null);
                        test(ir.Current == null);
                    }
                    else
                    {
                        test(obj.i == io.Current.i);
                        test(obj.i == ir.Current.i);
                    }
                }
            }
        }

        {
            Serialize.Small i = null;
            Serialize.Small o;
            Serialize.Small r;

            r = p.opSerialSmallCSharp(i, out o);

            test(o == null);
            test(r == null);
        }

        {
            Serialize.Small i = new Serialize.Small();
            i.i = 99;
            Serialize.Small o;
            Serialize.Small r;

            try
            {
                r = p.opSerialSmallCSharp(i, out o);

                test(o.i == 99);
                test(r.i == 99);
            }
            catch (Ice.OperationNotExistException)
            {
                // OK, talking to non-C# server.
            }
        }

        {
            Serialize.Large i = new Serialize.Large();
            i.d1  = 1.0;
            i.d2  = 2.0;
            i.d3  = 3.0;
            i.d4  = 4.0;
            i.d5  = 5.0;
            i.d6  = 6.0;
            i.d7  = 7.0;
            i.d8  = 8.0;
            i.d9  = 9.0;
            i.d10 = 10.0;
            Serialize.Large o;
            Serialize.Large r;

            try
            {
                r = p.opSerialLargeCSharp(i, out o);

                test(o.d1 == 1.0);
                test(o.d2 == 2.0);
                test(o.d3 == 3.0);
                test(o.d4 == 4.0);
                test(o.d5 == 5.0);
                test(o.d6 == 6.0);
                test(o.d7 == 7.0);
                test(o.d8 == 8.0);
                test(o.d9 == 9.0);
                test(o.d10 == 10.0);
                test(r.d1 == 1.0);
                test(r.d2 == 2.0);
                test(r.d3 == 3.0);
                test(r.d4 == 4.0);
                test(r.d5 == 5.0);
                test(r.d6 == 6.0);
                test(r.d7 == 7.0);
                test(r.d8 == 8.0);
                test(r.d9 == 9.0);
                test(r.d10 == 10.0);
            }
            catch (Ice.OperationNotExistException)
            {
                // OK, talking to non-C# server.
            }
        }

        {
            Serialize.Struct i = new Serialize.Struct();
            i.o  = null;
            i.o2 = i;
            i.s  = null;
            i.s2 = "Hello";
            Serialize.Struct o;
            Serialize.Struct r;

            try
            {
                r = p.opSerialStructCSharp(i, out o);

                test(o.o == null);
                test(o.o2 != null);
                test(((Serialize.Struct)(o.o2)).o == null);
                test(((Serialize.Struct)(o.o2)).o2 == o.o2);
                test(o.s == null);
                test(o.s2.Equals("Hello"));
                test(r.o == null);
                test(r.o2 != null);
                test(((Serialize.Struct)(r.o2)).o == null);
                test(((Serialize.Struct)(r.o2)).o2 == r.o2);
                test(r.s == null);
                test(r.s2.Equals("Hello"));
            }
            catch (Ice.OperationNotExistException)
            {
                // OK, talking to non-C# server.
            }
        }
    }
Ejemplo n.º 34
0
 public override CR[] opACRS(CR[] i, out CR[] o, Ice.Current current)
 {
     o = i;
     return i;
 }
Ejemplo n.º 35
0
    internal static void twoways(Ice.Communicator communicator, Test.MyClassPrx p)
    {
        {
            byte[] i = new byte[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (byte)c;
            }
            byte[] o;
            byte[] r;

            r = p.opAByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<byte> i = new List<byte>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((byte)c);
            }
            List<byte> o;
            List<byte> r;

            r = p.opLByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<byte> i = new LinkedList<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((byte)c);
            }
            LinkedList<byte> o;
            LinkedList<byte> r;

            r = p.opKByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<byte> i = new Queue<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((byte)c);
            }
            Queue<byte> o;
            Queue<byte> r;

            r = p.opQByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<byte> i = new Stack<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((byte)c);
            }
            Stack<byte> o;
            Stack<byte> r;

            r = p.opSByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CByteS i = new CByteS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((byte)c);
            }
            CByteS o;
            CByteS r;

            r = p.opCByteS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            bool[] i = new bool[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = c % 1 == 1;
            }
            bool[] o;
            bool[] r;

            r = p.opABoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<bool> i = new List<bool>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c % 1 == 1);
            }
            List<bool> o;
            List<bool> r;

            r = p.opLBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<bool> i = new LinkedList<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(c % 1 == 1);
            }
            LinkedList<bool> o;
            LinkedList<bool> r;

            r = p.opKBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<bool> i = new Queue<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(c % 1 == 1);
            }
            Queue<bool> o;
            Queue<bool> r;

            r = p.opQBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<bool> i = new Stack<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(c % 1 == 1);
            }
            Stack<bool> o;
            Stack<bool> r;

            r = p.opSBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CBoolS i = new CBoolS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c % 1 == 1);
            }
            CBoolS o;
            CBoolS r;

            r = p.opCBoolS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            short[] i = new short[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (short)c;
            }
            short[] o;
            short[] r;

            {
                r = p.opAShortS(i, out o);
            }
            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<short> i = new List<short>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((short)c);
            }
            List<short> o;
            List<short> r;

            r = p.opLShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<short> i = new LinkedList<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((short)c);
            }
            LinkedList<short> o;
            LinkedList<short> r;

            r = p.opKShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<short> i = new Queue<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((short)c);
            }
            Queue<short> o;
            Queue<short> r;

            r = p.opQShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<short> i = new Stack<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((short)c);
            }
            Stack<short> o;
            Stack<short> r;

            r = p.opSShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CShortS i = new CShortS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((short)c);
            }
            CShortS o;
            CShortS r;

            r = p.opCShortS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            int[] i = new int[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (int)c;
            }
            int[] o;
            int[] r;

            r = p.opAIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<int> i = new List<int>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((int)c);
            }
            List<int> o;
            List<int> r;

            r = p.opLIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<int> i = new LinkedList<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((int)c);
            }
            LinkedList<int> o;
            LinkedList<int> r;

            r = p.opKIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<int> i = new Queue<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((int)c);
            }
            Queue<int> o;
            Queue<int> r;

            r = p.opQIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<int> i = new Stack<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((int)c);
            }
            Stack<int> o;
            Stack<int> r;

            r = p.opSIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CIntS i = new CIntS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((int)c);
            }
            CIntS o;
            CIntS r;

            r = p.opCIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            long[] i = new long[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (long)c;
            }
            long[] o;
            long[] r;

            r = p.opALongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<long> i = new List<long>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((long)c);
            }
            List<long> o;
            List<long> r;

            r = p.opLLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<long> i = new LinkedList<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((long)c);
            }
            LinkedList<long> o;
            LinkedList<long> r;

            r = p.opKLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<long> i = new Queue<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((long)c);
            }
            Queue<long> o;
            Queue<long> r;

            r = p.opQLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<long> i = new Stack<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((long)c);
            }
            Stack<long> o;
            Stack<long> r;

            r = p.opSLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CLongS i = new CLongS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((long)c);
            }
            CLongS o;
            CLongS r;

            r = p.opCLongS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            float[] i = new float[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (float)c;
            }
            float[] o;
            float[] r;

            r = p.opAFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<float> i = new List<float>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((float)c);
            }
            List<float> o;
            List<float> r;

            r = p.opLFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<float> i = new LinkedList<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((float)c);
            }
            LinkedList<float> o;
            LinkedList<float> r;

            r = p.opKFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<float> i = new Queue<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((float)c);
            }
            Queue<float> o;
            Queue<float> r;

            r = p.opQFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<float> i = new Stack<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((float)c);
            }
            Stack<float> o;
            Stack<float> r;

            r = p.opSFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CFloatS i = new CFloatS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((float)c);
            }
            CFloatS o;
            CFloatS r;

            r = p.opCFloatS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            double[] i = new double[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (double)c;
            }
            double[] o;
            double[] r;

            r = p.opADoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<double> i = new List<double>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((double)c);
            }
            List<double> o;
            List<double> r;

            r = p.opLDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<double> i = new LinkedList<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((double)c);
            }
            LinkedList<double> o;
            LinkedList<double> r;

            r = p.opKDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<double> i = new Queue<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((double)c);
            }
            Queue<double> o;
            Queue<double> r;

            r = p.opQDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<double> i = new Stack<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((double)c);
            }
            Stack<double> o;
            Stack<double> r;

            r = p.opSDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CDoubleS i = new CDoubleS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((double)c);
            }
            CDoubleS o;
            CDoubleS r;

            r = p.opCDoubleS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            string[] i = new string[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = c.ToString();
            }
            string[] o;
            string[] r;

            r = p.opAStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<string> i = new List<string>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c.ToString());
            }
            List<string> o;
            List<string> r;

            r = p.opLStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<string> i = new LinkedList<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(c.ToString());
            }
            LinkedList<string> o;
            LinkedList<string> r;

            r = p.opKStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<string> i = new Queue<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(c.ToString());
            }
            Queue<string> o;
            Queue<string> r;

            r = p.opQStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<string> i = new Stack<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(c.ToString());
            }
            Stack<string> o;
            Stack<string> r;

            r = p.opSStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CStringS i = new CStringS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c.ToString());
            }
            CStringS o;
            CStringS r;

            r = p.opCStringS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Ice.Object[] i = new CV[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new CV(c);
            }
            Ice.Object[] o;
            Ice.Object[] r;

            r = p.opAObjectS(i, out o);

            System.Collections.IEnumerator eo = o.GetEnumerator();
            System.Collections.IEnumerator er = r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            List<Ice.Object> i = new List<Ice.Object>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            List<Ice.Object> o;
            List<Ice.Object> r;

            r = p.opLObjectS(i, out o);

            IEnumerator<Ice.Object> eo = o.GetEnumerator();
            IEnumerator<Ice.Object> er = r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            CObjectS i = new CObjectS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            CObjectS o;
            CObjectS r;

            r = p.opCObjectS(i, out o);

            IEnumerator<Ice.Object> eo = (IEnumerator<Ice.Object>)o.GetEnumerator();
            IEnumerator<Ice.Object> er = (IEnumerator<Ice.Object>)r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = communicator.stringToProxy(c.ToString());
            }
            Ice.ObjectPrx[] o;
            Ice.ObjectPrx[] r;

            r = p.opAObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<Ice.ObjectPrx> i = new List<Ice.ObjectPrx>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(communicator.stringToProxy(c.ToString()));
            }
            List<Ice.ObjectPrx> o;
            List<Ice.ObjectPrx> r;

            r = p.opLObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<Ice.ObjectPrx> i = new LinkedList<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(communicator.stringToProxy(c.ToString()));
            }
            LinkedList<Ice.ObjectPrx> o;
            LinkedList<Ice.ObjectPrx> r;

            r = p.opKObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<Ice.ObjectPrx> i = new Queue<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(communicator.stringToProxy(c.ToString()));
            }
            Queue<Ice.ObjectPrx> o;
            Queue<Ice.ObjectPrx> r;

            r = p.opQObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<Ice.ObjectPrx> i = new Stack<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(communicator.stringToProxy(c.ToString()));
            }
            Stack<Ice.ObjectPrx> o;
            Stack<Ice.ObjectPrx> r;

            r = p.opSObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CObjectPrxS i = new CObjectPrxS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(communicator.stringToProxy(c.ToString()));
            }
            CObjectPrxS o;
            CObjectPrxS r;

            r = p.opCObjectPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            S[] i = new S[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c].i = c;
            }
            S[] o;
            S[] r;

            r = p.opAStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<S> i = new List<S>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new S(c));
            }
            List<S> o;
            List<S> r;

            r = p.opLStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<S> i = new LinkedList<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(new S(c));
            }
            LinkedList<S> o;
            LinkedList<S> r;

            r = p.opKStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<S> i = new Queue<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(new S(c));
            }
            Queue<S> o;
            Queue<S> r;

            r = p.opQStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<S> i = new Stack<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(new S(c));
            }
            Stack<S> o;
            Stack<S> r;


            r = p.opSStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CStructS i = new CStructS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new S(c));
            }
            CStructS o;
            CStructS r;

            r = p.opCStructS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            SD[] i = new SD[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new SD(c);
            }
            SD[] o;
            SD[] r;

            r = p.opAStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<SD> i = new List<SD>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new SD(c));
            }
            List<SD> o;
            List<SD> r;

            r = p.opLStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<SD> i = new LinkedList<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(new SD(c));
            }
            LinkedList<SD> o;
            LinkedList<SD> r;

            r = p.opKStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<SD> i = new Queue<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(new SD(c));
            }
            Queue<SD> o;
            Queue<SD> r;

            r = p.opQStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<SD> i = new Stack<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(new SD(c));
            }
            Stack<SD> o;
            Stack<SD> r;


            r = p.opSStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CStructSD i = new CStructSD(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new SD(c));
            }
            CStructSD o;
            CStructSD r;

            r = p.opCStructSD(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CV[] i = new CV[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new CV(c);
            }
            CV[] o;
            CV[] r;

            r = p.opACVS(i, out o);

            System.Collections.IEnumerator eo = o.GetEnumerator();
            System.Collections.IEnumerator er = r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == ((CV)eo.Current).i);
                test(obj.i == ((CV)er.Current).i);
            }
        }

        {
            List<CV> i = new List<CV>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            List<CV> o;
            List<CV> r;

            r = p.opLCVS(i, out o);

            IEnumerator<CV> eo = o.GetEnumerator();
            IEnumerator<CV> er = r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == eo.Current.i);
                test(obj.i == er.Current.i);
            }
        }

        {
            CCVS i = new CCVS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            CCVS o;
            CCVS r;

            r = p.opCCVS(i, out o);

            IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator();
            IEnumerator<CV> er = (IEnumerator<CV>)r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.i == eo.Current.i);
                test(obj.i == er.Current.i);
            }
        }

        {
            CR[] i = new CR[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new CR(new CV(c));
            }
            CR[] o;
            CR[] r;

            r = p.opACRS(i, out o);

            System.Collections.IEnumerator eo = o.GetEnumerator();
            System.Collections.IEnumerator er = r.GetEnumerator();
            foreach(CR obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.v.i == ((CR)eo.Current).v.i);
                test(obj.v.i == ((CR)er.Current).v.i);
            }
        }

        {
            List<CR> i = new List<CR>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CR(new CV(c)));
            }
            List<CR> o;
            List<CR> r;

            r = p.opLCRS(i, out o);

            IEnumerator<CR> eo = o.GetEnumerator();
            IEnumerator<CR> er = r.GetEnumerator();
            foreach(CR obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.v.i == eo.Current.v.i);
                test(obj.v.i == er.Current.v.i);
            }
        }

        {
            CCRS i = new CCRS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CR(new CV(c)));
            }
            CCRS o;
            CCRS r;

            r = p.opCCRS(i, out o);

            IEnumerator<CR> eo = (IEnumerator<CR>)o.GetEnumerator();
            IEnumerator<CR> er = (IEnumerator<CR>)r.GetEnumerator();
            foreach(CR obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                test(obj.v.i == eo.Current.v.i);
                test(obj.v.i == er.Current.v.i);
            }
        }

        {
            En[] i = new En[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (En)(c % 3);
            }
            En[] o;
            En[] r;

            r = p.opAEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<En> i = new List<En>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((En)(c % 3));
            }
            List<En> o;
            List<En> r;

            r = p.opLEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<En> i = new LinkedList<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((En)(c % 3));
            }
            LinkedList<En> o;
            LinkedList<En> r;

            r = p.opKEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<En> i = new Queue<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((En)(c % 3));
            }
            Queue<En> o;
            Queue<En> r;

            r = p.opQEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<En> i = new Stack<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((En)(c % 3));
            }
            Stack<En> o;
            Stack<En> r;

            r = p.opSEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CEnS i = new CEnS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add((En)(c % 3));
            }
            CEnS o;
            CEnS r;

            r = p.opCEnS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CVPrx[] i = new CVPrx[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()));
            }
            CVPrx[] o;
            CVPrx[] r;

            r = p.opACVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            List<CVPrx> i = new List<CVPrx>(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            List<CVPrx> o;
            List<CVPrx> r;

            r = p.opLCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            LinkedList<CVPrx> i = new LinkedList<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            LinkedList<CVPrx> o;
            LinkedList<CVPrx> r;

            r = p.opKCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Queue<CVPrx> i = new Queue<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            Queue<CVPrx> o;
            Queue<CVPrx> r;

            r = p.opQCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Stack<CVPrx> i = new Stack<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            Stack<CVPrx> o;
            Stack<CVPrx> r;

            r = p.opSCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            CCVPrxS i = new CCVPrxS(_length);
            for(int c = 0; c < _length; ++c)
            {
                i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }
            CCVPrxS o;
            CCVPrxS r;

            r = p.opCCVPrxS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Custom<int> i = new Custom<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c);
            }
            Custom<int> o;
            Custom<int> r;

            r = p.opCustomIntS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Custom<CV> i = new Custom<CV>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }
            i.Add(null);
            Custom<CV> o;
            Custom<CV> r;

            r = p.opCustomCVS(i, out o);

            IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator();
            IEnumerator<CV> er = (IEnumerator<CV>)r.GetEnumerator();
            foreach(CV obj in i)
            {
                eo.MoveNext();
                er.MoveNext();
                if(obj == null)
                {
                    test(eo.Current == null);
                    test(er.Current == null);
                }
                else
                {
                    test(obj.i == eo.Current.i);
                    test(obj.i == er.Current.i);
                }
            }
        }

        {
            Custom<Custom<int>> i = new Custom<Custom<int>>();
            for(int c = 0; c < _length; ++c)
            {
                Custom<int> inner = new Custom<int>();
                for(int j = 0; j < c; ++j)
                {
                    inner.Add(j);
                }
                i.Add(inner);
            }
            Custom<Custom<int>> o;
            Custom<Custom<int>> r;

            r = p.opCustomIntSS(i, out o);

            test(Ice.CollectionComparer.Equals(i, o));
            test(Ice.CollectionComparer.Equals(i, r));
        }

        {
            Custom<Custom<CV>> i = new Custom<Custom<CV>>();
            for(int c = 0; c < _length; ++c)
            {
                Custom<CV> inner = new Custom<CV>();
                for(int j = 0; j < c; ++j)
                {
                    inner.Add(new CV(j));
                }
                i.Add(inner);
            }
            Custom<Custom<CV>> o;
            Custom<Custom<CV>> r;

            r = p.opCustomCVSS(i, out o);

            IEnumerator<Custom<CV>> eo = (IEnumerator<Custom<CV>>)o.GetEnumerator();
            IEnumerator<Custom<CV>> er = (IEnumerator<Custom<CV>>)r.GetEnumerator();
            foreach(Custom<CV> s in i)
            {
                eo.MoveNext();
                er.MoveNext();
                IEnumerator<CV> io = (IEnumerator<CV>)eo.Current.GetEnumerator();
                IEnumerator<CV> ir = (IEnumerator<CV>)er.Current.GetEnumerator();
                foreach(CV obj in s)
                {
                    io.MoveNext();
                    ir.MoveNext();
                    if(obj == null)
                    {
                        test(io.Current == null);
                        test(ir.Current == null);
                    }
                    else
                    {
                        test(obj.i == io.Current.i);
                        test(obj.i == ir.Current.i);
                    }
                }
            }
        }

#if !COMPACT && !SILVERLIGHT
        {
            Serialize.Small i = null;
            Serialize.Small o;
            Serialize.Small r;

            r = p.opSerialSmallCSharp(i, out o);

            test(o == null);
            test(r == null);
        }

        {
            Serialize.Small i = new Serialize.Small();
            i.i = 99;
            Serialize.Small o;
            Serialize.Small r;

            try
            {
                r = p.opSerialSmallCSharp(i, out o);

                test(o.i == 99);
                test(r.i == 99);
            }
            catch(Ice.OperationNotExistException)
            {
                // OK, talking to non-C# server.
            }
        }

        {
            Serialize.Large i = new Serialize.Large();
            i.d1 = 1.0;
            i.d2 = 2.0;
            i.d3 = 3.0;
            i.d4 = 4.0;
            i.d5 = 5.0;
            i.d6 = 6.0;
            i.d7 = 7.0;
            i.d8 = 8.0;
            i.d9 = 9.0;
            i.d10 = 10.0;
            Serialize.Large o;
            Serialize.Large r;

            try
            {
                r = p.opSerialLargeCSharp(i, out o);

                test(o.d1 == 1.0);
                test(o.d2 == 2.0);
                test(o.d3 == 3.0);
                test(o.d4 == 4.0);
                test(o.d5 == 5.0);
                test(o.d6 == 6.0);
                test(o.d7 == 7.0);
                test(o.d8 == 8.0);
                test(o.d9 == 9.0);
                test(o.d10 == 10.0);
                test(r.d1 == 1.0);
                test(r.d2 == 2.0);
                test(r.d3 == 3.0);
                test(r.d4 == 4.0);
                test(r.d5 == 5.0);
                test(r.d6 == 6.0);
                test(r.d7 == 7.0);
                test(r.d8 == 8.0);
                test(r.d9 == 9.0);
                test(r.d10 == 10.0);
            }
            catch(Ice.OperationNotExistException)
            {
                // OK, talking to non-C# server.
            }
        }

        {
            Serialize.Struct i = new Serialize.Struct();
            i.o = null;
            i.o2 = i;
            i.s = null;
            i.s2 = "Hello";
            Serialize.Struct o;
            Serialize.Struct r;

            try
            {
                r = p.opSerialStructCSharp(i, out o);

                test(o.o == null);
                test(o.o2 != null);
                test(((Serialize.Struct)(o.o2)).o == null);
                test(((Serialize.Struct)(o.o2)).o2 == o.o2);
                test(o.s == null);
                test(o.s2.Equals("Hello"));
                test(r.o == null);
                test(r.o2 != null);
                test(((Serialize.Struct)(r.o2)).o == null);
                test(((Serialize.Struct)(r.o2)).o2 == r.o2);
                test(r.s == null);
                test(r.s2.Equals("Hello"));
            }
            catch(Ice.OperationNotExistException)
            {
                // OK, talking to non-C# server.
            }
        }
#endif
    }
Ejemplo n.º 36
0
    void Update()
    {
        //set the Update Category (is the HP going up, down, or not moving)
        if (Mathf.Round(Value * 100f) / 100f == Mathf.Round(NewValue * 100f) / 100f)
        {
            UpdateCategory = Categories.NA;
        }
        else if (Value > NewValue)
        {
            UpdateCategory = Categories.decrease;
        }
        else if (Value < NewValue)
        {
            UpdateCategory = Categories.increase;
        }

        //Update the Mask locations (needed if you are going to move stuff arround)
        RectTransform MRT = (Mask.transform as RectTransform);

        if (FillStyle == FillStyles.horizontal)
        {
            Mask1 = new Vector3(MRT.position.x, MRT.position.y, MRT.position.z);
            Mask0 = new Vector3(MRT.position.x - MRT.rect.width + MaskOffset, MRT.position.y, MRT.position.z);
        }
        else
        {
            Mask1 = new Vector3(MRT.position.x, MRT.position.y, MRT.position.z);
            Mask0 = new Vector3(MRT.position.x, MRT.position.y - MRT.rect.height + MaskOffset, MRT.position.z);
        }

        //move the Current Value to the NewValue
        Value = Mathf.Lerp(Value, NewValue, Speed * Time.deltaTime);
        Value = Mathf.Clamp(Value, 0f, 1f);      //make sure the Value is between 0 and 1

        //move the Filler position to display the Correct Percent
        RectTransform FRT = (Filler.transform as RectTransform);

        FRT.position = Vector3.Lerp(Mask0, Mask1, Value);

        //set the color for the Fill Image, and the Text Objects
        Filler.GetComponent <Image>().color    = HPColor.Evaluate(Value);
        PercentTxt.GetComponent <Text>().color = TextColor.Evaluate(Value);
        RatioTxt.GetComponent <Text>().color   = TextColor.Evaluate(Value);

        //Execute Each Criteria Rule
        foreach (CriteriaRule CR in CriteriaRules)
        {
            if (CR.isImage())
            {
                CR.DefaultColor = HPColor.Evaluate(Value);
            }
            else
            {
                CR.DefaultColor = TextColor.Evaluate(Value);
            }

            CR.Use(Mathf.Round(Value * 100f) / 100f);
        }

        //Execute Each Update Animation Rule
        foreach (UpdateAnimationRule UAR in UpdateAnimationRules)
        {
            if (StartAnimate)
            {
                if (UAR.Category.ToString() == UpdateCategory.ToString())
                {
                    UAR.StartAnimation = true;
                }
            }

            UAR.Use();
        }

        //reset the StartAnimate variable
        StartAnimate = false;

        //activate or inactivate the text objects
        PercentTxt.SetActive(DisplayPercentTxt);
        RatioTxt.SetActive(DisplayRatioTxt);

        //update the PercentTxt
        PercentTxt.GetComponent <Text>().text = (Mathf.Round(Value * 100f)).ToString() + "%";
    }
Ejemplo n.º 37
0
 public string[] GetData()
 {
     return(new string[] { name, type, price.ToString() + "$", count.ToString(), unit, CR.ToString(),
                           CTR.ToString(), Users.ToString(), Clicks.ToString(), Views.ToString(), UserPrice.ToString() + "$" });
 }
Ejemplo n.º 38
0
        public void R2SCCrazyComplexSerializationTest()
        {

            // The textual content
            SC crazySc = new SC("Burn", "en-CA");
            crazySc.Code = new CD<String>()
            {
                Code = "284196006",
                CodeSystem = "2.16.840.1.113883.6.96",
                CodeSystemName = "SNOMED CT",
                DisplayName = "Burn of skin",
                NullFlavor = null,
                Translation = new SET<CD<string>>(),
                Qualifier = new LIST<CR<string>>()
            };
            crazySc.Code.Translation.Add(
                new CD<string>()
                {
                    Code = "15376812",
                    CodeSystem = "2.16.840.1.113883.3.232.99.1",
                    CodeSystemName = "3M HDD",
                    DisplayName = "BurnOfSkinSCT",
                    NullFlavor = null,
                    Translation = new SET<CD<string>>(
                        new CD<string>()
                        {
                            Code = "284196006",
                            CodeSystem = "2.16.840.1.113883.6.96",
                            CodeSystemName = "SNOMED CT",
                            DisplayName = "Burn of skin"
                        }, CD<String>.Comparator),
                    Qualifier = new LIST<CR<string>>()
                });
            crazySc.Translation = new SET<ST>();
            crazySc.Translation.Add(new ST("Quemar", "es"));
            crazySc.Translation.Add(new ST("Brûlure", "fr"));
            CR<String> severity = new CR<String>(new CV<String>(), new CD<String>());
            crazySc.Code.Qualifier.Add(severity);
            severity.Name.Code = "246112005";
            severity.Name.CodeSystem = "2.16.840.1.113883.6.96";
            severity.Name.CodeSystemName = "SNOMED CT";
            severity.Name.DisplayName = "Severity";
            severity.Value.Code = "24484000";
            severity.Value.CodeSystem = "2.16.840.1.113883.6.96";
            severity.Value.CodeSystemName = "SNOMED CT";
            severity.Value.DisplayName = "Severe";
            CR<String> findingsite = new CR<String>();
            findingsite.Name = new CD<string>();
            findingsite.Value = new CD<string>();
            crazySc.Code.Qualifier.Add(findingsite);
            findingsite.Name.Code = "363698007";
            findingsite.Name.CodeSystem = "2.16.840.1.113883.6.96";
            findingsite.Name.CodeSystemName = "SNOMED CT";
            findingsite.Name.DisplayName = "Finding site";
            findingsite.Value.Code = "113185004";
            findingsite.Value.CodeSystem = "2.16.840.1.113883.6.96";
            findingsite.Value.CodeSystemName = "SNOMED CT";
            findingsite.Value.DisplayName = "Skin between Fourth and Fifth Toes";
            CR<String> laterality = new CR<String>();
            laterality.Name = new CD<string>();
            laterality.Value = new CD<string>();
            findingsite.Value.Qualifier = new LIST<CR<string>>();
            findingsite.Value.Qualifier.Add(laterality);
            laterality.Name.Code = "272741003";
            laterality.Name.CodeSystem = "2.16.840.1.113883.6.96";
            laterality.Name.CodeSystemName = "SNOMED CT";
            laterality.Name.DisplayName = "Laterality";
            laterality.Value.Code = "7771000";
            laterality.Value.CodeSystem = "2.16.840.1.113883.6.96";
            laterality.Value.CodeSystemName = "SNOMED CT";
            laterality.Value.DisplayName = "Left";

            string expectedXml = @"<test xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" value=""Burn"" language=""en-CA"" xmlns=""urn:hl7-org:v3""><translation value=""Quemar"" language=""es"" /><translation value=""Brûlure"" language=""fr"" /><code code=""284196006:{246112005=24484000,363698007=(113185004:272741003=7771000)}"" codeSystem=""2.16.840.1.113883.6.96"" codeSystemName=""SNOMED CT""><translation code=""15376812"" codeSystem=""2.16.840.1.113883.3.232.99.1"" codeSystemName=""3M HDD""><displayName value=""BurnOfSkinSCT"" language=""en-US"" /><translation code=""284196006"" codeSystem=""2.16.840.1.113883.6.96"" codeSystemName=""SNOMED CT""><displayName value=""Burn of skin"" language=""en-US"" /></translation></translation></code></test>";
            string actualXml = R2SerializationHelper.SerializeAsString(crazySc);

            R2SerializationHelper.XmlIsEquivalent(expectedXml, actualXml);

        }
 If a single space delimits the control word, the space does not appear in the document(it’s ignored).Any characters following the single space delimiter, including any subsequent spaces, will appear as text or spaces in the document.For this reason, you should use spaces only where necessary.It is recommended to avoid spaces as a means of breaking up RTF syntax to make it easier to read.You can use paragraph marks(CR, LF, or CRLF) to break up lines without changing the meaning except in destinations that contain \ binN.
Ejemplo n.º 40
0
 public void Show(Canvas p, Thickness m)
 {
     if (can != null)
     {
         can.Visibility = Visibility.Visible;
         can.Margin     = m;
         return;
     }
     can            = new Canvas();
     can.Background = new SolidColorBrush(Colors.White);
     can.Margin     = m;
     can.Width      = 310;
     can.Height     = 420;
     p.Children.Add(can);
     CreateMod(can);
     CreateModA(can);
     SA               = new Slider();
     SA.Foreground    = new SolidColorBrush(Colors.Black);
     SA.Height        = 20;
     SA.Width         = 256;
     SA.Maximum       = 255;
     SA.Value         = 255;
     SA.ValueChanged += (o, e) => {
         CA             = (byte)SA.Value;
         TA.Text        = "A:" + CA.ToString();
         bor.Background = new SolidColorBrush(Color.FromArgb(CA, CR, CG, CB));
     };
     SR               = new Slider();
     SR.Foreground    = new SolidColorBrush(Colors.Red);
     SR.Height        = 20;
     SR.Width         = 256;
     SR.Maximum       = 255;
     SR.Value         = 255;
     SR.ValueChanged += (o, e) => {
         CR             = (byte)SR.Value;
         TR.Text        = "R:" + CR.ToString();
         bor.Background = new SolidColorBrush(Color.FromArgb(CA, CR, CG, CB));
     };
     SG               = new Slider();
     SG.Foreground    = new SolidColorBrush(Color.FromArgb(255, 0, 255, 0));
     SG.Height        = 20;
     SG.Width         = 256;
     SG.Maximum       = 255;
     SG.ValueChanged += (o, e) => {
         CG             = (byte)SG.Value;
         TG.Text        = "G:" + CG.ToString();
         bor.Background = new SolidColorBrush(Color.FromArgb(CA, CR, CG, CB));
     };
     SB               = new Slider();
     SB.Foreground    = new SolidColorBrush(Colors.Blue);
     SB.Height        = 20;
     SB.Width         = 256;
     SB.Maximum       = 255;
     SB.ValueChanged += (o, e) => {
         CB             = (byte)SB.Value;
         TB.Text        = "B:" + CB.ToString();
         bor.Background = new SolidColorBrush(Color.FromArgb(CA, CR, CG, CB));
     };
     can.Children.Add(SA);
     can.Children.Add(SR);
     can.Children.Add(SG);
     can.Children.Add(SB);
     TA            = new TextBlock();
     TA.Text       = "A:255";
     TR            = new TextBlock();
     TR.Text       = "R:255";
     TR.Foreground = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
     TG            = new TextBlock();
     TG.Text       = "G:0";
     TG.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 255, 0));
     TB            = new TextBlock();
     TB.Text       = "B:0";
     TB.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 0, 255));
     can.Children.Add(TA);
     can.Children.Add(TR);
     can.Children.Add(TG);
     can.Children.Add(TB);
     bor            = new Border();
     bor.Width      = 48;
     bor.Height     = 48;
     bor.Background = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
     can.Children.Add(bor);
     CA             = 255;
     CR             = 255;
     CG             = 0;
     CB             = 0;
     cancel         = new Button();
     cancel.Content = cancel_s[Component.language];
     cancel.Click  += (o, e) => {
         can.Visibility = Visibility.Collapsed;
     };
     can.Children.Add(cancel);
     ok         = new Button();
     ok.Content = ok_s[Component.language];
     ok.Click  += (o, e) => {
         if (Seletced != null)
         {
             Seletced(Color.FromArgb(CA, CR, CG, CB));
         }
         can.Visibility = Visibility.Collapsed;
     };
     can.Children.Add(ok);
     Order();
 }
Ejemplo n.º 41
0
 public void CRValueNameNotValidTest()
 {
     CR<String> cr = new CR<String>();
     cr.Value = "";
     cr.Name = "";
     cr.NullFlavor = null;
     Assert.IsTrue(cr.Validate());
 }
Ejemplo n.º 42
0
 public void CDQualifierCodeNullFlavorNullCheckTest()
 {
 CD<String> cd = new CD<String>();
 cd.Code = null;
 cd.NullFlavor = null;
 CR<String> warning = new CR<String>();
 warning.Name = new CD<string>();
 warning.Value = new CD<string>();
 warning.Value.Code = null;
 warning.Value.CodeSystem = null;
 warning.Name.Code = null;
 warning.Name.CodeSystem = null;
 cd.Qualifier = new LIST<CR<string>>();
 cd.Qualifier.Add(warning);
 cd.Validate();
 Assert.IsFalse(cd.Validate());
 }
Ejemplo n.º 43
0
 public void CRNullTest()
 {
     CR<String> cr = new CR<String>();
     cr.Value = null;
     cr.Name = null;
     cr.NullFlavor = null;
     Assert.IsFalse(cr.Validate());
 }
Ejemplo n.º 44
0
 public static extern int CM_MapCrToWin32Err(
     CR CmReturnCode,
     int DefaultErr
 );
Ejemplo n.º 45
0
 public void CRNullFlavorTest()
 {
     CR<String> cr = new CR<String>();
     cr.Value = null;
     cr.Name = null;
     cr.NullFlavor = NullFlavor.NotAsked;
     Assert.IsTrue(cr.Validate());
 }
Ejemplo n.º 46
0
    public static void dream_algm(int chain_num, int cr_num, double[] fit, int gen_num,
                                  double[] gr, ref bool gr_conv, ref int gr_count, int gr_num, double gr_threshold,
                                  double[] jumprate_table, int jumpstep, double[] limits, int pair_num,
                                  int par_num, int printstep,
                                  Func <int, double[], int, DensityResult> prior_density,
                                  Func <int, double[], double> sample_likelihood,
                                  ref double[] z)

    //****************************************************************************80
    //
    //  Purpose:
    //
    //    DREAM_ALGM gets a candidate parameter sample.
    //
    // Licensing:
    //
    //    This code is distributed under the GNU LGPL license.
    //
    //  Modified:
    //
    //    25 May 2013
    //
    //  Author:
    //
    //    Original FORTRAN90 version by Guannan Zhang.
    //    C++ version by John Burkardt.
    //
    //  Reference:
    //
    //    Jasper Vrugt, CJF ter Braak, CGH Diks, Bruce Robinson, James Hyman,
    //    Dave Higdon,
    //    Accelerating Markov Chain Monte Carlo Simulation by Differential
    //    Evolution with Self-Adaptive Randomized Subspace Sampling,
    //    International Journal of Nonlinear Sciences and Numerical Simulation,
    //    Volume 10, Number 3, March 2009, pages 271-288.
    //
    //  Parameters:
    //
    //    Input, int CHAIN_NUM, the total number of chains.
    //    3 <= CHAIN_NUM.
    //
    //    Input, int CR_NUM, the total number of CR values.
    //    1 <= CR_NUM.
    //
    //    Input, double FIT[CHAIN_NUM*GEN_NUM], the likelihood of
    //    each sample.
    //
    //    Input, int GEN_NUM, the total number of generations.
    //    2 <= GEN_NUM.
    //
    //    Input, double GR[PAR_NUM*GR_NUM],
    //    the Gelman-Rubin R statistic.
    //
    //    Input/output, int &GR_CONV, the Gelman-Rubin convergence flag.
    //
    //    Input/output, int &GR_COUNT, counts the number of generations
    //    at which the Gelman-Rubin statistic has been computed.
    //
    //    Input, int GR_NUM, the number of times the Gelman-Rubin
    //    statistic may be computed.
    //
    //    Input, double GR_THRESHOLD, the convergence tolerance for
    //    the Gelman-Rubin statistic.
    //
    //    Input, double JUMPRATE_TABLE[PAR_NUM], the jumprate table.
    //
    //    Input, int JUMPSTEP, forces a "long jump" every
    //    JUMPSTEP generations.
    //
    //    Input, double LIMITS[2*PAR_NUM], lower and upper bounds
    //    for each parameter.
    //
    //    Input, int PAIR_NUM, the number of pairs of
    //    crossover chains.
    //    0 <= PAIR_NUM.
    //
    //    Input, int PAR_NUM, the total number of parameters.
    //    1 <= PAR_NUM.
    //
    //    Input, int PRINTSTEP, the interval between generations on
    //    which the Gelman-Rubin statistic will be computed and written to a file.
    //
    //    Input/output, double Z[PAR_NUM*CHAIN_NUM*GEN_NUM], the Markov chain
    //    sample data.
    //
    //  Local parameters:
    //
    //    Local, int CHAIN_INDEX, the index of the current chain.
    //    1 <= CHAIN_INDEX <= CHAIN_NUM.
    //
    //    Local, double CR[CR_NUM], the CR values.
    //
    //    Local, double CR_DIS[CR_NUM], the CR distances.
    //
    //    Local, int CR_INDEX, the index of the selected CR value.
    //    1 <= CR_INDEX <= CR_NUM.
    //
    //    Local, double CR_PROB[CR_NUM], the probability of each CR.
    //
    //    Local, double CR_UPS[CR_NUM], the number of updates for each CR.
    //
    //    Local, int GEN_INDEX, the index of the current generation.
    //    1 <= GEN_INDEX <= GEN_NUM.
    //
    //    Local, double ZP[PAR_NUM], a candidate sample.
    //
    //    Local, int ZP_ACCEPT, the number of candidates accepted.
    //
    //    Local, double ZP_ACCEPT_RATE, the rate at which generated
    //    candidates were accepted.
    //
    //    Local, int ZP_COUNT, the number of candidates generated.
    //
    //    Local, double ZP_RATIO, the Metropolis ratio for a candidate.
    //
    {
        int gen_index;

        double[] zp_old    = new double[par_num];
        int      zp_count  = 0;
        int      zp_accept = 0;

        //
        //  Initialize the CR values.
        //
        double[] cr      = new double[cr_num];
        double[] cr_dis  = new double[cr_num];
        double[] cr_prob = new double[cr_num];
        int[]    cr_ups  = new int[cr_num];

        CR.cr_init(ref cr, ref cr_dis, cr_num, ref cr_prob, ref cr_ups);

        for (gen_index = 1; gen_index < gen_num; gen_index++)
        {
            int chain_index;
            for (chain_index = 0; chain_index < chain_num; chain_index++)
            {
                //
                //  Choose CR_INDEX, the index of a CR.
                //
                int cr_index = CR.cr_index_choose(cr_num, cr_prob);
                //
                //  Generate a sample candidate ZP.
                //
                double[] zp = Sample.sample_candidate(chain_index, chain_num, cr, cr_index, cr_num,
                                                      gen_index, gen_num, jumprate_table, jumpstep, limits, pair_num,
                                                      par_num, z);

                zp_count += 1;
                //
                //  Compute the log likelihood function for ZP.
                //
                double zp_fit = sample_likelihood(par_num, zp);

                int i;
                for (i = 0; i < par_num; i++)
                {
                    zp_old[i] = z[i + chain_index * par_num + (gen_index - 1) * par_num * chain_num];
                }

                double zp_old_fit = fit[chain_index + (gen_index - 1) * chain_num];
                //
                //  Compute the Metropolis ratio for ZP.
                //
                double pd1 = prior_density(par_num, zp, 0).result;

                double pd2 = prior_density(par_num,
                                           z, +0 + chain_index * par_num + (gen_index - 1) * par_num * chain_num).result;

                double zp_ratio = Math.Exp(
                    zp_fit + Math.Log(pd1) -
                    (zp_old_fit + Math.Log(pd2)));

                zp_ratio = Math.Min(zp_ratio, 1.0);
                //
                //  Accept the candidate, or copy the value from the previous generation.
                //
                double r = PDF.r8_uniform_01_sample();

                if (r <= zp_ratio)
                {
                    for (i = 0; i < par_num; i++)
                    {
                        z[i + chain_index * par_num + gen_index * par_num * chain_num] = zp[i];
                    }

                    zp_accept += 1;
                    fit[chain_index + gen_index * chain_num] = zp_fit;
                }
                else
                {
                    for (i = 0; i < par_num; i++)
                    {
                        z[i + chain_index * par_num + gen_index * par_num * chain_num] = zp_old[i];
                    }

                    fit[chain_index + gen_index * chain_num] = zp_old_fit;
                }

                switch (gr_conv)
                {
                //
                //  Update the CR distance.
                //
                case false:
                {
                    switch (cr_num)
                    {
                    case > 1:
                        CR.cr_dis_update(chain_index, chain_num, ref cr_dis, cr_index,
                                         cr_num, ref cr_ups, gen_index, gen_num, par_num, z);
                        break;
                    }

                    break;
                }
                }
            }

            switch (gr_conv)
            {
            //
            //  Update the multinomial distribution of CR.
            //
            case false:
            {
                switch (cr_num)
                {
                case > 1:
                {
                    switch ((gen_index + 1) % 10)
                    {
                    case 0:
                        CR.cr_prob_update(cr_dis, cr_num, ref cr_prob, cr_ups);
                        break;
                    }

                    break;
                }
                }

                break;
            }
            }

            switch ((gen_index + 1) % printstep)
            {
            //
            //  Every PRINTSTEP interval,
            //  * compute the Gelman Rubin R statistic for this generation,
            //    and determine if convergence has occurred.
            //
            case 0:
                GelmanRubin.gr_compute(chain_num, gen_index, gen_num, ref gr, ref gr_conv, ref gr_count,
                                       gr_num, gr_threshold, par_num, z);
                break;
            }

            switch (gr_conv)
            {
            //
            //  Check for outlier chains.
            //
            case false:
            {
                switch ((gen_index + 1) % 10)
                {
                case 0:
                    Chain.chain_outliers(chain_num, gen_index, gen_num, par_num, fit, z);
                    break;
                }

                break;
            }
            }
        }

        //
        //  Compute the acceptance rate.
        //
        double zp_accept_rate = zp_accept / (double)zp_count;

        Console.WriteLine("");
        Console.WriteLine("  The acceptance rate is " + zp_accept_rate + "");
    }
Ejemplo n.º 47
0
 public void CRValueNameNullFlavorTest()
 {
     CR<String> cr = new CR<String>();
     cr.Value = "284196006";
     cr.Name = "SNOMED CT";
     cr.NullFlavor = NullFlavor.NotAsked;
     Assert.IsFalse(cr.Validate());
 }
Ejemplo n.º 48
0
 public override void opACRS_async(AMD_MyClass_opACRS cb, CR[] i, Ice.Current current)
 {
     cb.ice_response(i, i);
 }
Ejemplo n.º 49
0
 public void CRValueNameValidTest()
 {
     CR<String> cr = new CR<String>();
     cr.Value = "284196006";
     cr.Name = "SNOMED CT";
     cr.NullFlavor = null;
     Assert.IsTrue(cr.Validate());
 }
        public void OpenURL(string URL, params IRPAComponent[] Components) /* It opens the indicated web page. Components must be a list of components of the page
                                                                            * that indicates when the page has been loaded: for example, "$googlelogo". */
        {
            bool     spread, exit, lbAdjust;
            DateTime timeout;

            string TxtIncognito()
            {
                return(Incognito ? " --incognito" : "");
            }

            spread   = false;
            lbAdjust = false;
            timeout  = DateTime.Now.AddSeconds(120);
            exit     = false;
            do
            {
                Balloon("Opening Chrome");
                Thread.Sleep(500);
                reset(chm);
                CheckAbort();
                if (timeout < DateTime.Now)
                {
                    throw new Exception("I can not open Chrome");
                }
                else
                {
                    try
                    {
                        if (chm.ComponentExist())
                        {
                            CR.WaitOne();
                            try
                            {
                                if (GetProxyExists())
                                {
                                    CheckProxy();
                                }
                                else if (chmClose.ComponentExist() && chmCloseCRC.ComponentExist() &&
                                         ((ToString(chmClose.name()).Length > 0) || (ToString(chmCloseCRC.name()).Length > 0)) &&
                                         (!StringIn(ToString(chmClose.name()), "cerrar") || !StringIn(ToString(chmCloseCRC.name()), "cerrar"))
                                         )
                                {
                                    fSpanish = false;
                                    spread   = true;
                                    throw new Exception("ERROR! Your Chrome or your Windows are not in Spanish. This library learned in Spanish buttons.");
                                }
                                else if (lbAdjust || ((Components != null) && ComponentsExist(0, Components)))
                                {
                                    RPAWin32Component chrome = chmURLEdit.Root();
                                    fSpanish = true;
                                    if (!StringIn(ToString(chrome.WindowState), "normal"))
                                    {
                                        chrome.Show("restore");
                                    }
                                    else
                                    {
                                        chrome.Move(0, 0);
                                        chrome.ReSize(985, 732);
                                        ControlTab(timeout);
                                        exit = lbAdjust || ComponentsExist(0, Components);
                                    }
                                }
                                else if (chmURLEdit.ComponentExist())
                                {
                                    RPAWin32Component chrome = chmURLEdit.Root();

                                    if (!StringIn(ToString(chrome.WindowState), "normal"))
                                    {
                                        chrome.Show("restore");
                                    }
                                    else
                                    {
                                        chmURLEdit.focus();
                                        reset(chm);
                                        if ((Components == null) || !ComponentsExist(0, Components))
                                        {
                                            ControlTab(timeout);
                                            chmURLEdit.TypeFromClipboardCheck(CheckURL(URL), 1, 0);
                                            chmURLEdit.TypeKey("Enter");
                                            Thread.Sleep(500);
                                            if (Components == null)
                                            {
                                                lbAdjust = true;
                                            }
                                            else
                                            {
                                                ComponentsExist(30, Components);
                                            }
                                        }
                                    }
                                }
                                else
                                {
                                    /* I do not have $ChromeURLEdit, but I have $Chrome */
                                    fSpanish = true;
                                    if (!StringIn(ToString(chm.WindowState), "normal"))
                                    {
                                        chm.Show("restore");
                                    }
                                    else
                                    {
                                        Close();  // It is clear that I have a Chrome at least with a rare configuration
                                    }
                                }
                            }
                            finally
                            {
                                CR.ReleaseMutex();
                            }
                        }
                        else if (ToString(URL).Trim().Length > 0)
                        {
                            cartes.run("chrome.exe" + TxtIncognito() + " \"" + ToString(URL).Trim() + "\"");
                            reset(chm);
                            Thread.Sleep(500);
                            Balloon("Waiting for Chrome");
                            List <IRPAComponent> list = new List <IRPAComponent>();
                            if (Components == null)
                            {
                                list.Add(chm);
                            }
                            else
                            {
                                list.AddRange(Components.ToList());
                            }
                            list.Add(chmProxy);
                            exit = ComponentsExist(30, list.ToArray());
                        }
                        else
                        {
                            cartes.run("chrome.exe" + TxtIncognito());
                            reset(chm);
                            Thread.Sleep(500);
                            exit = ComponentsExist(30, chmProxy, chmURLEdit);
                        }
                    }
                    catch (Exception e)
                    {
                        Balloon(e.Message);
                        if (spread)
                        {
                            throw;
                        }
                        else
                        {
                            forensic("Chrome.OpenURL", e);
                            Thread.Sleep(2000);
                        }
                    }
                }
            } while (!exit);
        }
Ejemplo n.º 51
0
        public void CDExampleTest01()
        {
            // Primary Code
            var burnCode = new CD <string>("284196006", "2.16.840.1.113883.6.96")
            {
                DisplayName       = "Burn of Skin",
                CodeSystemName    = "SNOMED-CT",
                CodeSystemVersion = "2009"
            };

            // Severity
            var severityQualifier = new CR <string>(
                new CV <String>("24112005", "2.16.840.1.113883.96")
            {
                DisplayName = "Severity"
            },
                new CD <String>("24484000", "2.16.840.1.113883.96")
            {
                DisplayName = "Severe"
            }
                );

            // Finding Site
            var findingSiteQualifier = new CR <String>(
                new CV <String>("363698007", "2.16.840.1.113883.96")
            {
                DisplayName = "Finding Site"
            },
                new CD <String>("24484000", "2.16.840.1.113883.96")
            {
                DisplayName = "Skin between fourth and fifth toes"
            }
                );

            // Laterality
            var lateralityQualifier = new CR <String>(
                new CV <String>("272741003", "2.16.840.1.113883.96")
            {
                DisplayName = "Laterality"
            },
                new CD <String>("77771000", "2.16.840.1.113883.96")
            {
                DisplayName = "Left Side"
            }
                );

            // Laterality applies to the finding site
            findingSiteQualifier.Value.Qualifier = new LIST <CR <string> >()
            {
                lateralityQualifier
            };

            // Finding site and severity applies to primary code
            burnCode.Qualifier = new LIST <CR <string> >()
            {
                severityQualifier,
                findingSiteQualifier
            };

            burnCode.NullFlavor = null;

            Assert.IsTrue(burnCode.Validate());
        }
Ejemplo n.º 52
0
 public AMI_MyClass_opACRSI(CR[] i)
 {
     _i = i;
 }
Ejemplo n.º 53
0
        public void R2SCCrazyComplexSerializationTest()
        {
            // The textual content
            SC crazySc = new SC("Burn", "en-CA");

            crazySc.Code = new CD <String>()
            {
                Code           = "284196006",
                CodeSystem     = "2.16.840.1.113883.6.96",
                CodeSystemName = "SNOMED CT",
                DisplayName    = "Burn of skin",
                NullFlavor     = null,
                Translation    = new SET <CD <string> >(),
                Qualifier      = new LIST <CR <string> >()
            };
            crazySc.Code.Translation.Add(
                new CD <string>()
            {
                Code           = "15376812",
                CodeSystem     = "2.16.840.1.113883.3.232.99.1",
                CodeSystemName = "3M HDD",
                DisplayName    = "BurnOfSkinSCT",
                NullFlavor     = null,
                Translation    = new SET <CD <string> >(
                    new CD <string>()
                {
                    Code           = "284196006",
                    CodeSystem     = "2.16.840.1.113883.6.96",
                    CodeSystemName = "SNOMED CT",
                    DisplayName    = "Burn of skin"
                }, CD <String> .Comparator),
                Qualifier = new LIST <CR <string> >()
            });
            crazySc.Translation = new SET <ST>();
            crazySc.Translation.Add(new ST("Quemar", "es"));
            crazySc.Translation.Add(new ST("Brûlure", "fr"));
            CR <String> severity = new CR <String>(new CV <String>(), new CD <String>());

            crazySc.Code.Qualifier.Add(severity);
            severity.Name.Code            = "246112005";
            severity.Name.CodeSystem      = "2.16.840.1.113883.6.96";
            severity.Name.CodeSystemName  = "SNOMED CT";
            severity.Name.DisplayName     = "Severity";
            severity.Value.Code           = "24484000";
            severity.Value.CodeSystem     = "2.16.840.1.113883.6.96";
            severity.Value.CodeSystemName = "SNOMED CT";
            severity.Value.DisplayName    = "Severe";
            CR <String> findingsite = new CR <String>();

            findingsite.Name  = new CD <string>();
            findingsite.Value = new CD <string>();
            crazySc.Code.Qualifier.Add(findingsite);
            findingsite.Name.Code            = "363698007";
            findingsite.Name.CodeSystem      = "2.16.840.1.113883.6.96";
            findingsite.Name.CodeSystemName  = "SNOMED CT";
            findingsite.Name.DisplayName     = "Finding site";
            findingsite.Value.Code           = "113185004";
            findingsite.Value.CodeSystem     = "2.16.840.1.113883.6.96";
            findingsite.Value.CodeSystemName = "SNOMED CT";
            findingsite.Value.DisplayName    = "Skin between Fourth and Fifth Toes";
            CR <String> laterality = new CR <String>();

            laterality.Name             = new CD <string>();
            laterality.Value            = new CD <string>();
            findingsite.Value.Qualifier = new LIST <CR <string> >();
            findingsite.Value.Qualifier.Add(laterality);
            laterality.Name.Code            = "272741003";
            laterality.Name.CodeSystem      = "2.16.840.1.113883.6.96";
            laterality.Name.CodeSystemName  = "SNOMED CT";
            laterality.Name.DisplayName     = "Laterality";
            laterality.Value.Code           = "7771000";
            laterality.Value.CodeSystem     = "2.16.840.1.113883.6.96";
            laterality.Value.CodeSystemName = "SNOMED CT";
            laterality.Value.DisplayName    = "Left";

            string expectedXml = @"<test xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" value=""Burn"" language=""en-CA"" xmlns=""urn:hl7-org:v3""><translation value=""Quemar"" language=""es"" /><translation value=""Brûlure"" language=""fr"" /><code code=""284196006:{246112005=24484000,363698007=(113185004:272741003=7771000)}"" codeSystem=""2.16.840.1.113883.6.96"" codeSystemName=""SNOMED CT""><translation code=""15376812"" codeSystem=""2.16.840.1.113883.3.232.99.1"" codeSystemName=""3M HDD""><displayName value=""BurnOfSkinSCT"" language=""en-US"" /><translation code=""284196006"" codeSystem=""2.16.840.1.113883.6.96"" codeSystemName=""SNOMED CT""><displayName value=""Burn of skin"" language=""en-US"" /></translation></translation></code></test>";
            string actualXml   = R2SerializationHelper.SerializeAsString(crazySc);

            R2SerializationHelper.XmlIsEquivalent(expectedXml, actualXml);
        }
Ejemplo n.º 54
0
    internal static void twowaysAMI(Ice.Communicator communicator, Test.MyClassPrx p)
    {
        {
            byte[] i = new byte[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (byte)c;
            }

            AMI_MyClass_opAByteSI cb = new AMI_MyClass_opAByteSI(i);
            p.opAByteS_async(cb, i);
            cb.check();
        }

        {
            List<byte> i = new List<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((byte)c);
            }

            AMI_MyClass_opLByteSI cb = new AMI_MyClass_opLByteSI(i);
            p.opLByteS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<byte> i = new LinkedList<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((byte)c);
            }

            AMI_MyClass_opKByteSI cb = new AMI_MyClass_opKByteSI(i);
            p.opKByteS_async(cb, i);
            cb.check();
        }

        {
            Queue<byte> i = new Queue<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((byte)c);
            }

            AMI_MyClass_opQByteSI cb = new AMI_MyClass_opQByteSI(i);
            p.opQByteS_async(cb, i);
            cb.check();
        }

        {
            Stack<byte> i = new Stack<byte>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((byte)c);
            }

            AMI_MyClass_opSByteSI cb = new AMI_MyClass_opSByteSI(i);
            p.opSByteS_async(cb, i);
            cb.check();
        }

        {
            CByteS i = new CByteS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((byte)c);
            }

            AMI_MyClass_opCByteSI cb = new AMI_MyClass_opCByteSI(i);
            p.opCByteS_async(cb, i);
            cb.check();
        }

        {
            bool[] i = new bool[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = c % 1 == 1;
            }

            AMI_MyClass_opABoolSI cb = new AMI_MyClass_opABoolSI(i);
            p.opABoolS_async(cb, i);
            cb.check();
        }

        {
            List<bool> i = new List<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c % 1 == 1);
            }

            AMI_MyClass_opLBoolSI cb = new AMI_MyClass_opLBoolSI(i);
            p.opLBoolS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<bool> i = new LinkedList<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(c % 1 == 1);
            }

            AMI_MyClass_opKBoolSI cb = new AMI_MyClass_opKBoolSI(i);
            p.opKBoolS_async(cb, i);
            cb.check();
        }

        {
            Queue<bool> i = new Queue<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(c % 1 == 1);
            }

            AMI_MyClass_opQBoolSI cb = new AMI_MyClass_opQBoolSI(i);
            p.opQBoolS_async(cb, i);
            cb.check();
        }

        {
            Stack<bool> i = new Stack<bool>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(c % 1 == 1);
            }

            AMI_MyClass_opSBoolSI cb = new AMI_MyClass_opSBoolSI(i);
            p.opSBoolS_async(cb, i);
            cb.check();
        }

        {
            CBoolS i = new CBoolS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c % 1 == 1);
            }

            AMI_MyClass_opCBoolSI cb = new AMI_MyClass_opCBoolSI(i);
            p.opCBoolS_async(cb, i);
            cb.check();
        }

        {
            short[] i = new short[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (short)c;
            }

            AMI_MyClass_opAShortSI cb = new AMI_MyClass_opAShortSI(i);
            p.opAShortS_async(cb, i);
            cb.check();
        }

        {
            List<short> i = new List<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((short)c);
            }

            AMI_MyClass_opLShortSI cb = new AMI_MyClass_opLShortSI(i);
            p.opLShortS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<short> i = new LinkedList<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((short)c);
            }

            AMI_MyClass_opKShortSI cb = new AMI_MyClass_opKShortSI(i);
            p.opKShortS_async(cb, i);
            cb.check();
        }

        {
            Queue<short> i = new Queue<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((short)c);
            }

            AMI_MyClass_opQShortSI cb = new AMI_MyClass_opQShortSI(i);
            p.opQShortS_async(cb, i);
            cb.check();
        }

        {
            Stack<short> i = new Stack<short>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((short)c);
            }

            AMI_MyClass_opSShortSI cb = new AMI_MyClass_opSShortSI(i);
            p.opSShortS_async(cb, i);
            cb.check();
        }

        {
            CShortS i = new CShortS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((short)c);
            }

            AMI_MyClass_opCShortSI cb = new AMI_MyClass_opCShortSI(i);
            p.opCShortS_async(cb, i);
            cb.check();
        }

        {
            int[] i = new int[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (int)c;
            }

            AMI_MyClass_opAIntSI cb = new AMI_MyClass_opAIntSI(i);
            p.opAIntS_async(cb, i);
            cb.check();
        }

        {
            List<int> i = new List<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((int)c);
            }

            AMI_MyClass_opLIntSI cb = new AMI_MyClass_opLIntSI(i);
            p.opLIntS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<int> i = new LinkedList<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((int)c);
            }

            AMI_MyClass_opKIntSI cb = new AMI_MyClass_opKIntSI(i);
            p.opKIntS_async(cb, i);
            cb.check();
        }

        {
            Queue<int> i = new Queue<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((int)c);
            }

            AMI_MyClass_opQIntSI cb = new AMI_MyClass_opQIntSI(i);
            p.opQIntS_async(cb, i);
            cb.check();
        }

        {
            Stack<int> i = new Stack<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((int)c);
            }

            AMI_MyClass_opSIntSI cb = new AMI_MyClass_opSIntSI(i);
            p.opSIntS_async(cb, i);
            cb.check();
        }

        {
            CIntS i = new CIntS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((int)c);
            }

            AMI_MyClass_opCIntSI cb = new AMI_MyClass_opCIntSI(i);
            p.opCIntS_async(cb, i);
            cb.check();
        }

        {
            long[] i = new long[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (long)c;
            }

            AMI_MyClass_opALongSI cb = new AMI_MyClass_opALongSI(i);
            p.opALongS_async(cb, i);
            cb.check();
        }

        {
            List<long> i = new List<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((long)c);
            }

            AMI_MyClass_opLLongSI cb = new AMI_MyClass_opLLongSI(i);
            p.opLLongS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<long> i = new LinkedList<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((long)c);
            }

            AMI_MyClass_opKLongSI cb = new AMI_MyClass_opKLongSI(i);
            p.opKLongS_async(cb, i);
            cb.check();
        }

        {
            Queue<long> i = new Queue<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((long)c);
            }

            AMI_MyClass_opQLongSI cb = new AMI_MyClass_opQLongSI(i);
            p.opQLongS_async(cb, i);
            cb.check();
        }

        {
            Stack<long> i = new Stack<long>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((long)c);
            }

            AMI_MyClass_opSLongSI cb = new AMI_MyClass_opSLongSI(i);
            p.opSLongS_async(cb, i);
            cb.check();
        }

        {
            CLongS i = new CLongS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((long)c);
            }

            AMI_MyClass_opCLongSI cb = new AMI_MyClass_opCLongSI(i);
            p.opCLongS_async(cb, i);
            cb.check();
        }

        {
            float[] i = new float[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (float)c;
            }

            AMI_MyClass_opAFloatSI cb = new AMI_MyClass_opAFloatSI(i);
            p.opAFloatS_async(cb, i);
            cb.check();
        }

        {
            List<float> i = new List<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((float)c);
            }

            AMI_MyClass_opLFloatSI cb = new AMI_MyClass_opLFloatSI(i);
            p.opLFloatS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<float> i = new LinkedList<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((float)c);
            }

            AMI_MyClass_opKFloatSI cb = new AMI_MyClass_opKFloatSI(i);
            p.opKFloatS_async(cb, i);
            cb.check();
        }

        {
            Queue<float> i = new Queue<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((float)c);
            }

            AMI_MyClass_opQFloatSI cb = new AMI_MyClass_opQFloatSI(i);
            p.opQFloatS_async(cb, i);
            cb.check();
        }

        {
            Stack<float> i = new Stack<float>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((float)c);
            }

            AMI_MyClass_opSFloatSI cb = new AMI_MyClass_opSFloatSI(i);
            p.opSFloatS_async(cb, i);
            cb.check();
        }

        {
            CFloatS i = new CFloatS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((float)c);
            }

            AMI_MyClass_opCFloatSI cb = new AMI_MyClass_opCFloatSI(i);
            p.opCFloatS_async(cb, i);
            cb.check();
        }

        {
            double[] i = new double[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (double)c;
            }

            AMI_MyClass_opADoubleSI cb = new AMI_MyClass_opADoubleSI(i);
            p.opADoubleS_async(cb, i);
            cb.check();
        }

        {
            List<double> i = new List<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((double)c);
            }

            AMI_MyClass_opLDoubleSI cb = new AMI_MyClass_opLDoubleSI(i);
            p.opLDoubleS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<double> i = new LinkedList<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((double)c);
            }

            AMI_MyClass_opKDoubleSI cb = new AMI_MyClass_opKDoubleSI(i);
            p.opKDoubleS_async(cb, i);
            cb.check();
        }

        {
            Queue<double> i = new Queue<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((double)c);
            }

            AMI_MyClass_opQDoubleSI cb = new AMI_MyClass_opQDoubleSI(i);
            p.opQDoubleS_async(cb, i);
            cb.check();
        }

        {
            Stack<double> i = new Stack<double>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((double)c);
            }

            AMI_MyClass_opSDoubleSI cb = new AMI_MyClass_opSDoubleSI(i);
            p.opSDoubleS_async(cb, i);
            cb.check();
        }

        {
            CDoubleS i = new CDoubleS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((double)c);
            }

            AMI_MyClass_opCDoubleSI cb = new AMI_MyClass_opCDoubleSI(i);
            p.opCDoubleS_async(cb, i);
            cb.check();
        }

        {
            string[] i = new string[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = c.ToString();
            }

            AMI_MyClass_opAStringSI cb = new AMI_MyClass_opAStringSI(i);
            p.opAStringS_async(cb, i);
            cb.check();
        }

        {
            List<string> i = new List<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c.ToString());
            }

            AMI_MyClass_opLStringSI cb = new AMI_MyClass_opLStringSI(i);
            p.opLStringS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<string> i = new LinkedList<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(c.ToString());
            }

            AMI_MyClass_opKStringSI cb = new AMI_MyClass_opKStringSI(i);
            p.opKStringS_async(cb, i);
            cb.check();
        }

        {
            Queue<string> i = new Queue<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(c.ToString());
            }

            AMI_MyClass_opQStringSI cb = new AMI_MyClass_opQStringSI(i);
            p.opQStringS_async(cb, i);
            cb.check();
        }

        {
            Stack<string> i = new Stack<string>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(c.ToString());
            }

            AMI_MyClass_opSStringSI cb = new AMI_MyClass_opSStringSI(i);
            p.opSStringS_async(cb, i);
            cb.check();
        }

        {
            CStringS i = new CStringS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c.ToString());
            }

            AMI_MyClass_opCStringSI cb = new AMI_MyClass_opCStringSI(i);
            p.opCStringS_async(cb, i);
            cb.check();
        }

        {
            Ice.Object[] i = new Ice.Object[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new CV(c);
            }

            AMI_MyClass_opAObjectSI cb = new AMI_MyClass_opAObjectSI(i);
            p.opAObjectS_async(cb, i);
            cb.check();
        }

        {
            List<Ice.Object> i = new List<Ice.Object>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }

            AMI_MyClass_opLObjectSI cb = new AMI_MyClass_opLObjectSI(i);
            p.opLObjectS_async(cb, i);
            cb.check();
        }

        {
            CObjectS i = new CObjectS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }

            AMI_MyClass_opCObjectSI cb = new AMI_MyClass_opCObjectSI(i);
            p.opCObjectS_async(cb, i);
            cb.check();
        }

        {
            Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = communicator.stringToProxy(c.ToString());
            }

            AMI_MyClass_opAObjectPrxSI cb = new AMI_MyClass_opAObjectPrxSI(i);
            p.opAObjectPrxS_async(cb, i);
            cb.check();
        }

        {
            List<Ice.ObjectPrx> i = new List<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(communicator.stringToProxy(c.ToString()));
            }

            AMI_MyClass_opLObjectPrxSI cb = new AMI_MyClass_opLObjectPrxSI(i);
            p.opLObjectPrxS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<Ice.ObjectPrx> i = new LinkedList<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(communicator.stringToProxy(c.ToString()));
            }

            AMI_MyClass_opKObjectPrxSI cb = new AMI_MyClass_opKObjectPrxSI(i);
            p.opKObjectPrxS_async(cb, i);
            cb.check();
        }

        {
            Queue<Ice.ObjectPrx> i = new Queue<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(communicator.stringToProxy(c.ToString()));
            }

            AMI_MyClass_opQObjectPrxSI cb = new AMI_MyClass_opQObjectPrxSI(i);
            p.opQObjectPrxS_async(cb, i);
            cb.check();
        }

        {
            Stack<Ice.ObjectPrx> i = new Stack<Ice.ObjectPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(communicator.stringToProxy(c.ToString()));
            }

            AMI_MyClass_opSObjectPrxSI cb = new AMI_MyClass_opSObjectPrxSI(i);
            p.opSObjectPrxS_async(cb, i);
            cb.check();
        }

        {
            CObjectPrxS i = new CObjectPrxS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(communicator.stringToProxy(c.ToString()));
            }

            AMI_MyClass_opCObjectPrxSI cb = new AMI_MyClass_opCObjectPrxSI(i);
            p.opCObjectPrxS_async(cb, i);
            cb.check();
        }

        {
            S[] i = new S[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c].i = c;
            }

            AMI_MyClass_opAStructSI cb = new AMI_MyClass_opAStructSI(i);
            p.opAStructS_async(cb, i);
            cb.check();
        }

        {
            List<S> i = new List<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new S(c));
            }

            AMI_MyClass_opLStructSI cb = new AMI_MyClass_opLStructSI(i);
            p.opLStructS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<S> i = new LinkedList<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(new S(c));
            }

            AMI_MyClass_opKStructSI cb = new AMI_MyClass_opKStructSI(i);
            p.opKStructS_async(cb, i);
            cb.check();
        }

        {
            Queue<S> i = new Queue<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(new S(c));
            }

            AMI_MyClass_opQStructSI cb = new AMI_MyClass_opQStructSI(i);
            p.opQStructS_async(cb, i);
            cb.check();
        }

        {
            Stack<S> i = new Stack<S>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(new S(c));
            }

            AMI_MyClass_opSStructSI cb = new AMI_MyClass_opSStructSI(i);
            p.opSStructS_async(cb, i);
            cb.check();
        }

        {
            CStructS i = new CStructS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new S(c));
            }

            AMI_MyClass_opCStructSI cb = new AMI_MyClass_opCStructSI(i);
            p.opCStructS_async(cb, i);
            cb.check();
        }

        {
            SD[] i = new SD[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new SD(c);
            }

            AMI_MyClass_opAStructSDI cb = new AMI_MyClass_opAStructSDI(i);
            p.opAStructSD_async(cb, i);
            cb.check();
        }

        {
            List<SD> i = new List<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new SD(c));
            }

            AMI_MyClass_opLStructSDI cb = new AMI_MyClass_opLStructSDI(i);
            p.opLStructSD_async(cb, i);
            cb.check();
        }

        {
            LinkedList<SD> i = new LinkedList<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(new SD(c));
            }

            AMI_MyClass_opKStructSDI cb = new AMI_MyClass_opKStructSDI(i);
            p.opKStructSD_async(cb, i);
            cb.check();
        }

        {
            Queue<SD> i = new Queue<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(new SD(c));
            }

            AMI_MyClass_opQStructSDI cb = new AMI_MyClass_opQStructSDI(i);
            p.opQStructSD_async(cb, i);
            cb.check();
        }

        {
            Stack<SD> i = new Stack<SD>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(new SD(c));
            }

            AMI_MyClass_opSStructSDI cb = new AMI_MyClass_opSStructSDI(i);
            p.opSStructSD_async(cb, i);
            cb.check();
        }

        {
            CStructSD i = new CStructSD();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new SD(c));
            }

            AMI_MyClass_opCStructSDI cb = new AMI_MyClass_opCStructSDI(i);
            p.opCStructSD_async(cb, i);
            cb.check();
        }

        {
            CV[] i = new CV[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new CV(c);
            }

            AMI_MyClass_opACVSI cb = new AMI_MyClass_opACVSI(i);
            p.opACVS_async(cb, i);
            cb.check();
        }

        {
            List<CV> i = new List<CV>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }

            AMI_MyClass_opLCVSI cb = new AMI_MyClass_opLCVSI(i);
            p.opLCVS_async(cb, i);
            cb.check();
        }

        {
            CCVS i = new CCVS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }

            AMI_MyClass_opCCVSI cb = new AMI_MyClass_opCCVSI(i);
            p.opCCVS_async(cb, i);
            cb.check();
        }

        {
            CVPrx[] i = new CVPrx[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()));
            }

            AMI_MyClass_opACVPrxSI cb = new AMI_MyClass_opACVPrxSI(i);
            p.opACVPrxS_async(cb, i);
            cb.check();
        }

        {
            List<CVPrx> i = new List<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }

            AMI_MyClass_opLCVPrxSI cb = new AMI_MyClass_opLCVPrxSI(i);
            p.opLCVPrxS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<CVPrx> i = new LinkedList<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }

            AMI_MyClass_opKCVPrxSI cb = new AMI_MyClass_opKCVPrxSI(i);
            p.opKCVPrxS_async(cb, i);
            cb.check();
        }

        {
            Queue<CVPrx> i = new Queue<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }

            AMI_MyClass_opQCVPrxSI cb = new AMI_MyClass_opQCVPrxSI(i);
            p.opQCVPrxS_async(cb, i);
            cb.check();
        }

        {
            Stack<CVPrx> i = new Stack<CVPrx>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }

            AMI_MyClass_opSCVPrxSI cb = new AMI_MyClass_opSCVPrxSI(i);
            p.opSCVPrxS_async(cb, i);
            cb.check();
        }

        {
            CCVPrxS i = new CCVPrxS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())));
            }

            AMI_MyClass_opCCVPrxSI cb = new AMI_MyClass_opCCVPrxSI(i);
            p.opCCVPrxS_async(cb, i);
            cb.check();
        }

        {
            CR[] i = new CR[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = new CR(new CV(c));
            }

            AMI_MyClass_opACRSI cb = new AMI_MyClass_opACRSI(i);
            p.opACRS_async(cb, i);
            cb.check();
        }

        {
            List<CR> i = new List<CR>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CR(new CV(c)));
            }

            AMI_MyClass_opLCRSI cb = new AMI_MyClass_opLCRSI(i);
            p.opLCRS_async(cb, i);
            cb.check();
        }

        {
            CCRS i = new CCRS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CR(new CV(c)));
            }

            AMI_MyClass_opCCRSI cb = new AMI_MyClass_opCCRSI(i);
            p.opCCRS_async(cb, i);
            cb.check();
        }

        {
            En[] i = new En[_length];
            for(int c = 0; c < _length; ++c)
            {
                i[c] = (En)(c % 3);
            }

            AMI_MyClass_opAEnSI cb = new AMI_MyClass_opAEnSI(i);
            p.opAEnS_async(cb, i);
            cb.check();
        }

        {
            List<En> i = new List<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((En)(c % 3));
            }

            AMI_MyClass_opLEnSI cb = new AMI_MyClass_opLEnSI(i);
            p.opLEnS_async(cb, i);
            cb.check();
        }

        {
            LinkedList<En> i = new LinkedList<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.AddLast((En)(c % 3));
            }

            AMI_MyClass_opKEnSI cb = new AMI_MyClass_opKEnSI(i);
            p.opKEnS_async(cb, i);
            cb.check();
        }

        {
            Queue<En> i = new Queue<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.Enqueue((En)(c % 3));
            }

            AMI_MyClass_opQEnSI cb = new AMI_MyClass_opQEnSI(i);
            p.opQEnS_async(cb, i);
            cb.check();
        }

        {
            Stack<En> i = new Stack<En>();
            for(int c = 0; c < _length; ++c)
            {
                i.Push((En)(c % 3));
            }

            AMI_MyClass_opSEnSI cb = new AMI_MyClass_opSEnSI(i);
            p.opSEnS_async(cb, i);
            cb.check();
        }

        {
            CEnS i = new CEnS();
            for(int c = 0; c < _length; ++c)
            {
                i.Add((En)(c % 3));
            }

            AMI_MyClass_opCEnSI cb = new AMI_MyClass_opCEnSI(i);
            p.opCEnS_async(cb, i);
            cb.check();
        }

        {
            Custom<int> i = new Custom<int>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(c);
            }

            AMI_MyClass_opCustomIntSI cb = new AMI_MyClass_opCustomIntSI(i);
            p.opCustomIntS_async(cb, i);
            cb.check();
        }

        {
            Custom<CV> i = new Custom<CV>();
            for(int c = 0; c < _length; ++c)
            {
                i.Add(new CV(c));
            }

            AMI_MyClass_opCustomCVSI cb = new AMI_MyClass_opCustomCVSI(i);
            p.opCustomCVS_async(cb, i);
            cb.check();
        }

        {
            Custom<Custom<int>> i = new Custom<Custom<int>>();
            for(int c = 0; c < _length; ++c)
            {
                Custom<int> inner = new Custom<int>();
                for(int j = 0; j < c; ++j)
                {
                    inner.Add(j);
                }
                i.Add(inner);
            }

            AMI_MyClass_opCustomIntSSI cb = new AMI_MyClass_opCustomIntSSI(i);
            p.opCustomIntSS_async(cb, i);
            cb.check();
        }

        {
            Custom<Custom<CV>> i = new Custom<Custom<CV>>();
            for(int c = 0; c < _length; ++c)
            {
                Custom<CV> inner = new Custom<CV>();
                for(int j = 0; j < c; ++j)
                {
                    inner.Add(new CV(j));
                }
                i.Add(inner);
            }

            AMI_MyClass_opCustomCVSSI cb = new AMI_MyClass_opCustomCVSSI(i);
            p.opCustomCVSS_async(cb, i);
            cb.check();
        }

#if !COMPACT && !SILVERLIGHT
        {
            Serialize.Small i = null;

            AMI_MyClass_opSerialSmallCSharpNull cb = new AMI_MyClass_opSerialSmallCSharpNull();
            p.opSerialSmallCSharp_async(cb, i);
            cb.check();
        }

        {
            Serialize.Small i = new Serialize.Small();
            i.i = 99;

            AMI_MyClass_opSerialSmallCSharp cb = new AMI_MyClass_opSerialSmallCSharp();
            p.opSerialSmallCSharp_async(cb, i);
            cb.check();
        }

        {
            Serialize.Large i = new Serialize.Large();
            i.d1 = 1.0;
            i.d2 = 2.0;
            i.d3 = 3.0;
            i.d4 = 4.0;
            i.d5 = 5.0;
            i.d6 = 6.0;
            i.d7 = 7.0;
            i.d8 = 8.0;
            i.d9 = 9.0;
            i.d10 = 10.0;

            AMI_MyClass_opSerialLargeCSharp cb = new AMI_MyClass_opSerialLargeCSharp();
            p.opSerialLargeCSharp_async(cb, i);
            cb.check();
        }

        {
            Serialize.Struct i = new Serialize.Struct();
            i.o = null;
            i.o2 = i;
            i.s = null;
            i.s2 = "Hello";

            AMI_MyClass_opSerialStructCSharp cb = new AMI_MyClass_opSerialStructCSharp();
            p.opSerialStructCSharp_async(cb, i);
            cb.check();
        }
#endif
    }
Ejemplo n.º 55
0
 public CR(CR rule)
     : base(rule.spelling, rule.rules)
 {
 }