Esempio n. 1
0
 internal void EditPacket(BL.Packet packet)
 {
     passedPacket = packet;
     linkedPacket = new Packet();
     linkedPacket.Merge(passedPacket);
     _linker.LinkObjectToControl(this, linkedPacket);
 }
Esempio n. 2
0
        public bool AddProduct(string name, string unit, decimal price, bool isVisible, int count, decimal tax, decimal shipping, out BL.Product product)
        {
            bool addProduct = false;
            using (ShopDataContext db = new ShopDataContext())
            {
                product = new BL.Product();

                if (db.Products.Any(p => p.Name == name))
                    return false;
                BL.Modules.Products.ProductProperies ppbl = new ProductProperies();

                product.ProductID = Guid.NewGuid();
                product.Name = name;
                product.CreateDate = DateTime.Now;
                product.Unit = unit;
                product.Price = price;
                product.InStock = (count > 0);
                product.IsVisible = isVisible;
                product.ProductTypeID = (int)ProductType.Types.Real;
                product.Count = count;
                product.Tax = tax;
                product.Shipping = shipping;
                db.Products.InsertOnSubmit(product);
                db.SubmitChanges();
                addProduct = ppbl.AddProductPhoto(BL.Site.DefaultPhotoPreview, BL.Site.DefaultPhotoOriginal, product.ProductID);
                addProduct = true;

            }
            return addProduct;
        }
Esempio n. 3
0
File: Mail.cs Progetto: adizka/iShop
        public static void Registration(BL.User user)
        {
            string m_subject = "Registration on marvelworldwide.com";

            StringBuilder sb = new StringBuilder();

            string m_link = BL.SiteProperties.SiteUrl + "Users/UserConfirmation.aspx?email=" + user.Email + "&id=" + user.ConfirmationID.ToString();

            sb.Append("<p><h3>");
            sb.Append(SiteProperties.SiteName);
            sb.Append("</h3></p><br /><p><h4>You have complited registration form on <a href='");
            sb.Append(SiteProperties.SiteUrl);
            sb.Append("'>");
            sb.Append(SiteProperties.SiteName);
            sb.Append("</a>.</h4></p><br /><br /><p>To confirm you registration please follow  link <a href='");
            sb.Append(m_link);
            sb.Append("'>");
            sb.Append(m_link);
            sb.Append("</a></p><br /><br /><p>Br, Administration ");
            sb.Append(SiteProperties.SiteName);
            sb.Append("</p>");
            string m_from = "*****@*****.**";
            ;

            MailHelper.SendMailMessage(m_from, user.Email, string.Empty, string.Empty, m_subject, sb.ToString());
        }
    public Dictionary(int cue, ProgressBar pBar)
    {
        bl = new BL();
        DataTable dt = bl.GetAllTrainingSet();

        switch (cue)
        {
            case 1:
                // Get All Words
                PopulateWordsTables(dt, pBar);
                break;
            case 2:
                // Preliminary Terms
                //DataTable
                //GetTerms(
                GetTermFrequencyData(pBar);
                break;
            case 3:
                // Create Dictionary
                CreateDictionary(pBar);
                break;
            case 4:
                // Create Features Sets
                HandleExtraInfo(pBar);
                break;
        }// Switch
    }
        public bool check_update_product(ref BL.Product product,string product_Name)
        {
            SqlParameter[] param = new SqlParameter[1];
            param[0] = new SqlParameter("@Product_Name", SqlDbType.VarChar, 50);
            param[0].Value = product_Name;
            DataTable dt = new DataTable();
            dt = SelectTable("check_Update_product", param);
            if (dt.Rows.Count >=1)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    product.Product_Name1 = dr["Product_Name"].ToString();
                    product.Avalible_Quantity1 = Convert.ToInt32(dr["Avalible_Quantity"]);
                    product.Critcal_Quantity1 = Convert.ToInt32(dr["Critcal_Quantity"]);
                    product.Oraginal_Price1 = float.Parse(dr["Oraginal_Price"].ToString());
                    product.Sales_Price1 = float.Parse(dr["Sales_Price"].ToString());
                }

                return true;
            }
            else
            {
                return false;
            }
        }
 public MatrixMaker(ProgressBar pBar, Label lbl)
 {
     this.lbl = lbl;
     bl = new BL();
     finalDt = new DataTable();
     this.pBar = pBar;
 }
 public BL.Domain.TicketResponse CreateTicketResponse(BL.Domain.TicketResponse response)
 {
     if (response.Ticket != null)
     {
         string insertStatement = "INSERT INTO TicketResponse([Text], [Date], IsClientResponse"
         + ", Ticket_TicketNumber) VALUES (@text, @date"
         + ", @isClientResponse, @tickedNumber)";
         using (var connection = this.GetConnection())
          {
             OleDbCommand command = new OleDbCommand(insertStatement, connection);
             command.Parameters.AddWithValue("@text", response.Text);
             command.Parameters.AddWithValue("@date", response.Date.ToString("yyyy-MM-dd HH:mm:ss"));
             command.Parameters.AddWithValue("@isClientResponse", response.IsClientResponse);
             command.Parameters.AddWithValue("@tickedNumber", response.Ticket.TicketNumber);
             connection.Open();
             command.ExecuteNonQuery();
             // Retrieve primary key ‘Id' of inserted ticketresponse
             //When retrieving this data from Access, we must create and execute 2 commands
             string retrievalQuery = "Select @@Identity";
             OleDbCommand retrievalOfNewNbrCommand = new OleDbCommand(retrievalQuery, connection);
             response.Id = Convert.ToInt32(retrievalOfNewNbrCommand.ExecuteScalar());
             connection.Close(); // good practice!
          }
         return response;
     }
     else
         throw new ArgumentException("The ticketresponse has no ticket attached to it");
 }
        public bool logIn(string User_Name, string User_password,ref BL.Employee emp)
        {
            SqlParameter[] parm = new SqlParameter[2];
            parm[0] = new SqlParameter("@User_Name", SqlDbType.NVarChar, 50);
            parm[0].Value = User_Name;
            parm[1] = new SqlParameter("@User_Password", SqlDbType.NVarChar, 50);
            parm[1].Value = User_password;
            DataTable dt = new DataTable();
            dt = SelectTable("SP_Login", parm);
            if (dt.Rows.Count >= 1)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    BL.Employee.Id = Convert.ToInt32(dr["User_Id"]);
                    BL.Employee.User_Name1 = dr["User_Name"].ToString();
                    emp.User_Password1 = dr["User_Password"].ToString();
                    emp.User_Type1 = Convert.ToInt32(dr["User_Type"]);
                    emp.User_Address1 = dr["User_Address"].ToString();
                    emp.User_Phone1 = Convert.ToDouble(dr["User_Phone"]);
                    emp.User_Salary1 = Convert.ToDouble(dr["User_Salary"]);
                    emp.User_Ssn1 = Convert.ToDouble(dr["User_Ssn"]);
                }

                return true;
            }
            else
            {

                return false;
            }
        }
        public bool AddProduct(BL.Product product)
        {
            SqlParameter[] param = new SqlParameter[5];
            param[0] = new SqlParameter("@Product_Name", SqlDbType.VarChar, 50);
            param[0].Value = product.Product_Name1;

            param[1] = new SqlParameter("@Avalible_Quantity", SqlDbType.Int);
            param[1].Value = product.Avalible_Quantity1;

            param[2] = new SqlParameter("@Critcal_Quantity", SqlDbType.Int);
            param[2].Value = product.Critcal_Quantity1;

            param[3] = new SqlParameter("@Oraginal_Price", SqlDbType.Int);
            param[3].Value = product.Oraginal_Price1;

            param[4] = new SqlParameter("@Sales_Price", SqlDbType.Int);
            param[4].Value = product.Sales_Price1;

            open();
            if (ExecuteComand("AddProduct", param))
            {
                close();
                return true;
            }
            else return false;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OverviewControl" /> class.
        /// </summary>
        /// <param name="patComp">The pat comp.</param>
        public OverviewControl(BL.Interfaces.ISPDBL patComp)
        {
            InitializeComponent();

            this.patComp = patComp;

            listViewOverview.View = View.Details;
            listViewOverview.LabelEdit = false;
            listViewOverview.AllowColumnReorder = true;
            listViewOverview.FullRowSelect = true;

            // Create columns for the items and subitems.
            listViewOverview.Columns.Add("PID", 30);
            listViewOverview.Columns.Add("Last name", 60);
            listViewOverview.Columns.Add("First name", 60);

            listViewOverview.Columns.Add("#visits", 45);
            listViewOverview.Columns.Add("#ops", 40);
            listViewOverview.Columns.Add("fist visit", 70);
            listViewOverview.Columns.Add("last visit", 70);
            listViewOverview.Columns.Add("first op", 70);
            listViewOverview.Columns.Add("last op", 70);
            listViewOverview.Columns.Add("diagnose group", 70);
            listViewOverview.Columns.Add("finished", 50);
            listViewOverview.Columns.Add("first visit diagnose", 120);
            listViewOverview.Columns.Add("performed first op", 120);
            listViewOverview.Columns.Add("performed last op", 120);
        }
        public BL.Domain.TicketResponse CreateTicketResponse(BL.Domain.TicketResponse response)
        {
            if (response.Ticket != null)
            {
                string insertStatement = "INSERT INTO TicketResponse([Text], [Date], IsClientResponse"
                + ", Ticket_TicketNumber) VALUES (@text, @date"
                + ", @isClientResponse, @tickedNumber)";
                using (var connection = this.GetConnection())
                 {
                    SqlCommand command = new SqlCommand(insertStatement, connection);
                    command.Parameters.AddWithValue("@text", response.Text);
                    command.Parameters.AddWithValue("@date", response.Date.ToString("yyyy-MM-dd HH:mm:ss"));
                    command.Parameters.AddWithValue("@isClientResponse", response.IsClientResponse);
                    command.Parameters.AddWithValue("@tickedNumber", response.Ticket.TicketNumber);
                    command.CommandText += "; Select SCOPE_IDENTITY();";
                    connection.Open();

                    response.Id = Convert.ToInt32(command.ExecuteScalar());
                    connection.Close(); // good practice!
                 }
                return response;
            }
            else
                throw new ArgumentException("The ticketresponse has no ticket attached to it");
        }
Esempio n. 12
0
 public void BLNonNegNullTest()
 {
     BL bl = new BL();
     bl.Value = null;
     bl.NullFlavor = null;
     Assert.IsFalse(bl.Validate());
 }
        public bool Insert_Worker(BL.Worker wo)
        {
            SqlParameter[] parm = new SqlParameter[7];
            parm[0] = new SqlParameter("@User_Name", SqlDbType.NVarChar, 50);
            parm[0].Value = BL.Worker.User_Name1;
            parm[1] = new SqlParameter("@User_Password", SqlDbType.NVarChar, 50);
            parm[1].Value = wo.User_Password1;
            parm[2] = new SqlParameter("@User_Type", SqlDbType.Int);
            parm[2].Value = wo.User_Type1;
            parm[3] = new SqlParameter("@User_Address", SqlDbType.NVarChar, 50);
            parm[3].Value = wo.User_Address1;
            parm[4] = new SqlParameter("@User_Phone", SqlDbType.Float);
            parm[4].Value = wo.User_Phone1;
            parm[5] = new SqlParameter("@User_Ssn", SqlDbType.Float);
            parm[5].Value = wo.User_Ssn1;
            parm[6] = new SqlParameter("@User_Salary", SqlDbType.Float);
            parm[6].Value = wo.User_Salary1;

            open();
            if (ExecuteComand("Insert_Worker", parm))
            {
                close();
                return true;
            }
            else
            {
                close();
                return false;
            }
        }
        public BL.Domain.Ticket CreateTicket(BL.Domain.Ticket ticket)
        {
            string insertStatement = "INSERT INTO Ticket(AccountId, [Text],DateOpened, State, DeviceName) VALUES(@accountId, @text, @dateOpened, @state,@deviceName)";
            using (var connection = this.GetConnection())
            {
                OleDbCommand command = new OleDbCommand(insertStatement, connection);
                command.Parameters.AddWithValue("@accountId", ticket.AccountId);
                command.Parameters.AddWithValue("@text", ticket.Text);
                command.Parameters.AddWithValue("@dateOpened",
                ticket.DateOpened.ToString("yyyy-MM-dd HH:mm:ss"));
                command.Parameters.AddWithValue("@state", (byte)ticket.State);
                if (ticket is HardwareTicket)
                    command.Parameters.AddWithValue("@deviceName",
                    ((HardwareTicket)ticket).DeviceName);
                else
                    command.Parameters.AddWithValue("@deviceName", DBNull.Value);
                connection.Open();
                command.ExecuteNonQuery();
                string retrievalQuery = "Select @@Identity";
                OleDbCommand retrievalOfNewNbrCommand = new OleDbCommand(retrievalQuery, connection);
                ticket.TicketNumber = Convert.ToInt32(retrievalOfNewNbrCommand.ExecuteScalar());

                connection.Close();
            } return ticket;
        }
        public static DocumentTemplate ConvertToModel(BL.Models.DocumentTemplate template)
        {
            Mapper.CreateMap<BL.Models.DocumentTemplate, DocumentTemplate>();
            Mapper.CreateMap<DocumentType, Models.DocumentType>();

            return Mapper.Map<BL.Models.DocumentTemplate, DocumentTemplate>(template);
        }
Esempio n. 16
0
 public ExpenseModel(BL.Expense expense)
 {
     this.Name = expense.Name;
     this.AmountType = expense.AmountType;
     this.CreatorUserId = expense.Creator != null ? expense.Creator.Id : new int?();
     this.IconId = expense.Icon != null ? expense.Icon.Id : new int?();
     this.IsKioskModeAllowed = expense.IsKioskModeAllowed;
 }
        public frmVistaReporteMovimiento(BL.Movimiento movimiento)
        {
            InitializeComponent();
            ReporteMovimiento reporteMovimiento = new ReporteMovimiento();
            reporteMovimiento.SetDataSource(movimiento);

            crvReporteMovimiento.ReportSource = reporteMovimiento;
        }
Esempio n. 18
0
 public AddDrive(BL.SecureBox secBox)
 {
     InitializeComponent();
     this.secBox = secBox;
     comboBoxLetters.ItemsSource = secBox.GetFreeDriveLetters();
     comboBoxLetters.SelectedIndex = first;
     CheckCloudStorages();
 }
Esempio n. 19
0
        public void UpdateCell(BL.UserGroup showExhibitor)
        {
            usergroup = showExhibitor;
            nameLabel.Text = usergroup.Name;

            var u = new Uri(usergroup.ImageUrl);
            logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
        }
Esempio n. 20
0
 internal static IQueryable<BL.DomainModel.Order> AdaptOrders(EntityCollection<Order> orderCollection, BL.DomainModel.Customer c)
 {
     if (orderCollection.IsLoaded == false)
     {
         return null;
     }
     var orders = from o in orderCollection.AsEnumerable()
                  select AdaptOrder(o, c);
     return orders.AsQueryable();
 }
        public static Document ConvertToModel(BL.Models.Document document)
        {
            Mapper.CreateMap<BL.Models.Document, Document>();
            Mapper.CreateMap<User, Models.User>();
            Mapper.CreateMap<DocumentType, Models.DocumentType>();
            Mapper.CreateMap<Position, Models.Position>();
            Mapper.CreateMap<Role, Models.Role>();

            return Mapper.Map<BL.Models.Document, Document>(document);
        }
Esempio n. 22
0
 private Categories(BL.Category category, Categories parent)
 {
     this.Parent = parent;
     this.Root = parent.Root;
     this.Name = category.Name;
     this.ID = category.CategoryID;
     this.sort = category.Sort;
     this.level = parent.level + 1;
     AllCategories = Root.AllCategories;
 }
        public FrmAddNewReservasion(BL.Manipulations.Reservasion _reservasion)
        {
            InitializeComponent();

            Mode = "Edit";
            Fillcbx_Physician();
            Fillcbx_VisitType();
            FillUIInEditMode(_reservasion);
            SelectedReservasion = _reservasion;
        }
Esempio n. 24
0
		public void UpdateCell (BL.Exhibitor showExhibitor)
		{
			exhibitor = showExhibitor;
			nameLabel.Text = exhibitor.Name;
			cityCountryLabel.Text = exhibitor.City + ", " + exhibitor.Country;
			boothLocationLabel.Text = exhibitor.Locations;
		
			var u = new Uri(exhibitor.ImageUrl);
			logoImageView.Image = ImageLoader.DefaultRequestImage(u, this);
		}
        public TweetDetailsScreen(BL.Tweet showTweet)
            : base()
        {
            tweet = showTweet;

            View.BackgroundColor = UIColor.White;

            user = new UILabel () {
                TextAlignment = UITextAlignment.Left,
                Font = UIFont.FromName("Helvetica-Light",AppDelegate.Font16pt),
                BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
            };
            handle = new UnderlineLabel () {
                TextAlignment = UITextAlignment.Left,
                Font = UIFont.FromName("Helvetica-Light",AppDelegate.Font9pt),
                TextColor = AppDelegate.ColorTextLink,

                BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
            };
            handleButton = UIButton.FromType (UIButtonType.Custom);
            handleButton.TouchUpInside += (sender, e) => {
                var url = new NSUrl(tweet.AuthorUrl);
                var request = new NSUrlRequest(url);
                if (AppDelegate.IsPhone)
                    NavigationController.PushViewController (new WebViewController (request), true);
                else
                    PresentModalViewController (new WebViewController(request), true);
            };
            date = new UILabel () {
                TextAlignment = UITextAlignment.Left,
                Font = UIFont.FromName("Helvetica-Light",AppDelegate.Font9pt),
                TextColor = UIColor.DarkGray,
                BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
            };

            image = new UIImageView();

            webView = new UIWebView();
            webView.Delegate = new WebViewDelegate(this);
            try { // iOS5 only
                webView.ScrollView.ScrollEnabled = false;
                webView.ScrollView.Bounces = false;
            } catch {}

            View.AddSubview (user);
            View.AddSubview (handle);
            View.AddSubview (handleButton);
            View.AddSubview (image);
            View.AddSubview (date);
            View.AddSubview (webView);

            LayoutSubviews();
            if (tweet != null)
                Update ();
        }
 public bool Insert_Worker(BL.Worker wo)
 {
     if (wo == null || !Vlidate_User_Name(Worker.User_Name1) || wo.User_Address1 == null || wo.User_Password1 == null || wo.User_Phone1 <= 0 || wo.User_Salary1 <= 0 || wo.User_Ssn1 <= 0 || wo.User_Type1 <= 1 || wo.User_Address1 == "" || wo.User_Password1 == "" || Worker.User_Name1 == null || Worker.User_Name1 == "")
     {
         return false;
     }
     else
     {
         return mang.Insert_Worker(wo);
     }
 }
Esempio n. 27
0
 protected string GetRenderedControl(BL.ProductsRefCategory item)
 {
     StringWriter stringWrite = new StringWriter();
     System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
     var control = LoadControl("~/Modules/Controls/AddToCard.ascx") as iStore.Modules.Controls.AddToCard;
     control.ProductId = item.ProductID;
     control.ID = Guid.NewGuid().ToString();
     control.IsCounterVisible = false;
     var btn = control.FindControl("addBtn") as System.Web.UI.WebControls.Button;
     btn.OnClientClick = "addTocart('" + item.ProductID.ToString() + "',1)";
     return iStore.Modules.Controls.AddToCard.RenderControl(control);
 }
    public Randomizer(ProgressBar pBar)
    {
        bl = new BL();
        pBar.Value = 0;

        DataTable dt = bl.getAllSongs();

        int numOfRows = dt.Rows.Count;
        int numForTraining = Convert.ToInt32(Math.Round(numOfRows * 0.6));
        int numForTest = Convert.ToInt32(Math.Round(numOfRows * 0.4));
        DataRow dr = dt.Rows[50];
        DevideSets(dt, numForTest, numForTraining, pBar);
    }
Esempio n. 29
0
        public void UpdateCell(BL.Tweet showTweet)
        {
            tweet = showTweet;

            handle.Text = tweet.FormattedAuthor;
            user.Text = tweet.RealName;
            date.Text = tweet.FormattedTime;
            tweetLabel.Text = tweet.Title;

            var u = new Uri (tweet.ImageUrl);
            var img = ImageLoader.DefaultRequestImage (u,this);
            if(img != null)
                image.Image = RemoveSharpEdges (img);
        }
Esempio n. 30
0
 public Immunizations()
 {
     this.id                  = new IIImpl();
     this.negationInd         = new BLImpl();
     this.statusCode          = new CSImpl();
     this.effectiveTime       = new TSImpl();
     this.confidentialityCode = new SETImpl <CV, Code>(typeof(CVImpl));
     this.uncertaintyCode     = new CVImpl();
     this.routeCode           = new CVImpl();
     this.approachSiteCode    = new CVImpl();
     this.doseQuantity        = new PQImpl();
     this.pertinentInformationPatientImmunizationObservations = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Immunization.Merged.PatientImmunizationObservations>();
     this.subjectOf = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Merged.Includes>();
     this.cause2IntoleranceCondition = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Immunization.Merged.IntoleranceCondition>();
 }
Esempio n. 31
0
 public MeasuredObservation()
 {
     this.code                    = new CDImpl();
     this.negationInd             = new BLImpl();
     this.effectiveTime           = new IVLImpl <TS, Interval <PlatformDate> >();
     this.confidentialityCode     = new SETImpl <CV, Code>(typeof(CVImpl));
     this.value                   = new PQImpl();
     this.interpretationCode      = new CEImpl();
     this.performerActingPerson   = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt911108ca.IActingPerson>();
     this.definitionActDefinition = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Merged.ActDefinition>();
     this.predecessorOldCommonObservationEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Merged.OldCommonObservationEvent>();
     this.reason = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Merged.BecauseOf>();
     this.componentSubObservationEvent         = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Merged.ComponentObservations_1>();
     this.componentOfPatientCareProvisionEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt011001ca.CareCompositions>();
 }
Esempio n. 32
0
 public ClinicalObservationDocument()
 {
     this.id                  = new SETImpl <II, Identifier>(typeof(IIImpl));
     this.code                = new CVImpl();
     this.title               = new STImpl();
     this.statusCode          = new CSImpl();
     this.confidentialityCode = new SETImpl <CV, Code>(typeof(CVImpl));
     this.primaryInformationRecipientRecipients = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Iehr.Merged.IRecipients>();
     this.authenticator = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Iehr.Merged.AuthenticatedBy>();
     this.predecessorOldClinicalDocumentEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Iehr.Merged.ReplacesRecordIds>();
     this.appendageOfAddendumDocument         = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Iehr.Merged.AddendumDocument>();
     this.subjectOf1AnnotationIndicator       = new BLImpl(false);
     this.subjectOf2 = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Merged.Includes>();
     this.componentOfPatientCareProvisionEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_05_00.Common.Coct_mt011001ca.CareCompositions>();
 }
Esempio n. 33
0
 public AllergyIntolerance()
 {
     this.id                                   = new IIImpl();
     this.code                                 = new CDImpl();
     this.negationInd                          = new BLImpl();
     this.statusCode                           = new CSImpl();
     this.effectiveTime                        = new TSImpl();
     this.confidentialityCode                  = new SETImpl <CV, Code>(typeof(CVImpl));
     this.uncertaintyCode                      = new CVImpl();
     this.value                                = new CVImpl();
     this.supportRecords                       = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Repc_mt000005ca.IRecords>();
     this.subjectOf2                           = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Merged.Includes>();
     this.subjectOf3AnnotationIndicator        = new BLImpl(false);
     this.componentOfPatientCareProvisionEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt011001ca.CareCompositions>();
 }
Esempio n. 34
0
 public AllergyIntolerance()
 {
     this.id                            = new IIImpl();
     this.code                          = new CDImpl();
     this.negationInd                   = new BLImpl();
     this.statusCode                    = new CSImpl();
     this.effectiveTime                 = new TSImpl();
     this.confidentialityCode           = new SETImpl <CV, Code>(typeof(CVImpl));
     this.uncertaintyCode               = new CVImpl();
     this.value                         = new CVImpl();
     this.supportRecords                = new List <Ca.Infoway.Messagebuilder.Model.Ab_mr2007_v02_r02.Iehr.Repc_mt000005ca.IRecords>();
     this.subjectOf1Annotation          = new List <Ca.Infoway.Messagebuilder.Model.Ab_mr2007_v02_r02.Sessionmgmt.Coct_mt120600ca.Notes>();
     this.subjectOf3AnnotationIndicator = new BLImpl(false);
     this.componentOf                   = new List <Ca.Infoway.Messagebuilder.Model.Ab_mr2007_v02_r02.Merged.IsPartOf>();
 }
Esempio n. 35
0
 public AllergyIntolerance()
 {
     this.id                        = new IIImpl();
     this.code                      = new CDImpl();
     this.negationInd               = new BLImpl();
     this.statusCode                = new CSImpl();
     this.effectiveTime             = new TSImpl();
     this.confidentialityCode       = new SETImpl <CV, Code>(typeof(CVImpl));
     this.uncertaintyCode           = new CVImpl();
     this.value                     = new CVImpl();
     this.supportRecords            = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Iehr.Repc_mt000009ca.IRecords>();
     this.subjectOf1ControlActEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Iehr.Repc_mt000009ca.AllergyIntoleranceStatusChanges>();
     this.subjectOf2Annotation      = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Common.Coct_mt120600ca.Notes>();
     this.componentOf               = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Merged.IsPartOf>();
 }
Esempio n. 36
0
 public Prescription()
 {
     this.id                  = new IIImpl();
     this.code                = new CDImpl();
     this.statusCode          = new CSImpl();
     this.confidentialityCode = new SETImpl <CV, Code>(typeof(CVImpl));
     this.reason              = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Pharmacy.Merged.PrescribedBecauseOf>();
     this.preconditionVerificationEventCriterion = new BLImpl(false);
     this.derivedFromSourceDispense = new BLImpl(false);
     this.component1AdministrationInstructionsText = new STImpl();
     this.subjectOf1AnnotationIndicator            = new BLImpl(false);
     this.subjectOf2DetectedIssueIndicator         = new BLImpl(false);
     this.subjectOf3RefusalToFill = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Pharmacy.Merged.RefusalToFills>();
     this.componentOf1            = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Merged.IsPartOf>();
 }
Esempio n. 37
0
 public PersonPerson()
 {
     this.name    = new LISTImpl <PN, PersonName>(typeof(PNImpl));
     this.telecom = new LISTImpl <TEL, TelecommunicationAddress>(typeof(TELImpl));
     this.administrativeGenderCode = new CVImpl();
     this.birthTime                = new TSImpl();
     this.deceasedInd              = new BLImpl();
     this.deceasedTime             = new TSImpl();
     this.multipleBirthInd         = new BLImpl();
     this.multipleBirthOrderNumber = new INTImpl();
     this.addr                  = new LISTImpl <AD, PostalAddress>(typeof(ADImpl));
     this.asOtherIDs            = new List <Ca.Infoway.Messagebuilder.Model.Ab_r02_04_03.Cr.Merged.OtherIDsNonHealthcareIdentifiers>();
     this.personalRelationship  = new List <Ca.Infoway.Messagebuilder.Model.Ab_r02_04_03.Cr.Merged.PersonalRelationship>();
     this.languageCommunication = new List <Ca.Infoway.Messagebuilder.Model.Ab_r02_04_03.Merged.LanguageCommunication>();
 }
Esempio n. 38
0
 public void Adiciona(BL bl)
 {
     using (var context = new TerminalContext())
     {
         if (BuscaPorId(bl.Id) == null)
         {
             context.BLs.Add(bl);
             context.SaveChanges();
         }
         else
         {
             Atualiza(bl);
         }
     }
 }
Esempio n. 39
0
 public OtherMedication()
 {
     this.id                               = new IIImpl();
     this.code                             = new CDImpl();
     this.statusCode                       = new CSImpl();
     this.effectiveTime                    = new IVLImpl <TS, Interval <PlatformDate> >();
     this.confidentialityCode              = new CVImpl();
     this.routeCode                        = new CVImpl();
     this.componentDosageInstruction       = new List <Ca.Infoway.Messagebuilder.Model.Pcs_cerx_v01_r04_4.Pharmacy.Porx_mt980040ca.AdministrationInstructions>();
     this.subjectOf1ControlActEvent        = new List <Ca.Infoway.Messagebuilder.Model.Pcs_cerx_v01_r04_4.Pharmacy.Merged.StatusChanges>();
     this.subjectOf2DetectedIssueIndicator = new BLImpl(false);
     this.subjectOf3Annotation             = new List <Ca.Infoway.Messagebuilder.Model.Pcs_cerx_v01_r04_4.Common.Coct_mt120600ca.Notes>();
     this.subjectOf4AnnotationIndicator    = new BLImpl(false);
     this.subjectOf5DetectedIssueEvent     = new List <Ca.Infoway.Messagebuilder.Model.Pcs_cerx_v01_r04_4.Pharmacy.Porx_mt980030ca.Issues>();
 }
Esempio n. 40
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {

            BL bl = new BL();
            SqlCommand cmd = new SqlCommand();
            SqlCommand cmd1 = new SqlCommand();
            SqlDataReader dr;


            Random ran = new Random();
            string phrNo = Convert.ToString(ran.Next(999999));

            cmd.CommandText = "insert into SignUp values(@FirstName,@LastName,@Gender,@DOB,@Phone,@Email,@UserName,@Password,@Role,@PHRno)";
            cmd.Parameters.Add("FirstName", txt_firstname.Text);
            cmd.Parameters.Add("LastName", txt_lastname.Text);
            cmd.Parameters.Add("Gender", RadioButtonList1.SelectedItem.ToString());
            cmd.Parameters.Add("DOB", lbl_dob.Text);
            cmd.Parameters.Add("Phone", txt_phone.Text);
            cmd.Parameters.Add("Email", txt_emailid.Text);

            cmd.Parameters.Add("UserName", txt_Username.Text);
            cmd.Parameters.Add("Password", txt_pswd.Text);
            cmd.Parameters.Add("Role", ddl_usertype.Text);
            cmd.Parameters.Add("PHRno", txt_Username.Text+phrNo);


            //==========================check if username already exists==========
            cmd1.CommandText = "select UserName from SignUp where UserName=@un";
            cmd1.Parameters.Add("@un", txt_Username.Text);
            dr = bl.ExecuteReader(cmd1);


            if (dr.Read())
            {
                Response.Write("<script>alert('Username already exists...:(')</script>");
            }
            else
            {
                bl.closeCon();
                result = bl.ExecuteNonQuery(cmd);
                InsertAddress(bl, cmd1, phrNo);

            }

        }
    }
Esempio n. 41
0
 public OtherMedications()
 {
     this.id                               = new IIImpl();
     this.code                             = new CDImpl();
     this.statusCode                       = new CSImpl();
     this.effectiveTime                    = new IVLImpl <TS, Interval <PlatformDate> >();
     this.confidentialityCode              = new SETImpl <CV, Code>(typeof(CVImpl));
     this.routeCode                        = new CVImpl();
     this.componentDosageInstruction       = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Common.Coct_mt270010ca.AdministrationInstructions>();
     this.subjectOf1ControlActEvent        = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Pharmacy.Merged.StatusChanges>();
     this.subjectOf2DetectedIssueIndicator = new BLImpl(false);
     this.subjectOf3Annotation             = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Common.Coct_mt120600ca.Notes>();
     this.subjectOf4AnnotationIndicator    = new BLImpl(false);
     this.subjectOf5DetectedIssueEvent     = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Common.Coct_mt260030ca.Issues>();
     this.componentOf                      = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2007_v02_r02.Merged.IsPartOf>();
 }
Esempio n. 42
0
        public async Task <JsonResult> Get()
        {
            List <string> list = new List <string>();

            using (var db = new BL())
            {
                foreach (var item in await db.GetCountries())
                {
                    list.Add(item.Country.ToString());
                }
            }

            return(Json(new SupportedCountriesView {
                Countries = list
            }));
        }
Esempio n. 43
0
 public RelatedSubject()
 {
     this.typeId            = new IIImpl();
     this.templateId        = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.code              = new CEImpl();
     this.addr              = new LISTImpl <AD, PostalAddress>(typeof(ADImpl));
     this.telecom           = new LISTImpl <TEL, TelecommunicationAddress>(typeof(TELImpl));
     this.subjectTypeId     = new IIImpl();
     this.subjectTemplateId = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.subjectId         = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.subjectName       = new LISTImpl <PN, PersonName>(typeof(PNImpl));
     this.subjectAdministrativeGenderCode = new CEImpl();
     this.subjectBirthTime    = new TSCDAR1Impl();
     this.subjectDeceasedInd  = new BLImpl();
     this.subjectDeceasedTime = new TSCDAR1Impl();
 }
Esempio n. 44
0
        public object Parse(System.Xml.XmlReader s, DatatypeFormatterParseResult result)
        {
            // Parse base (ANY) from the stream
            ANYFormatter baseFormatter = new ANYFormatter();

            // Parse TS
            BL retVal = baseFormatter.Parse <BL>(s, result);

            // Now parse our data out... Attributes
            if (s.GetAttribute("value") != null)
            {
                retVal.Value = Convert.ToBoolean(s.GetAttribute("value"));
            }

            return(retVal);
        }
 public string Get(string listVendorIDs, string listBizTypeIDs, string listGoodsClassIDs, string listGoodsIDs, string listPOStateIDs, DateTime?startTime, DateTime?endTime, string WechatID)
 {
     if (string.IsNullOrWhiteSpace(listPOStateIDs))
     {
         listPOStateIDs = BaseSettings.listDefualtPOStateIDs;
     }
     return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingOrderVendorSubtotal(
                                                                   DataHelper.GetListInt(listVendorIDs),
                                                                   DataHelper.GetListInt(listBizTypeIDs),
                                                                   DataHelper.GetListInt(listGoodsClassIDs),
                                                                   DataHelper.GetListInt(listGoodsIDs),
                                                                   DataHelper.GetListInt(listPOStateIDs),
                                                                   DataHelper.GetDateTime(startTime),
                                                                   DataHelper.GetDateTimeAddOneDay(endTime)),
                                                               0, 0)));
 }
Esempio n. 46
0
 public GenericQueryParameters()
 {
     this.administrationEffectivePeriodValue = new IVLImpl <TS, Interval <PlatformDate> >();
     this.amendedInTimeRangeValue            = new IVLImpl <TS, Interval <PlatformDate> >();
     this.careCompositionIDValue             = new List <II>();
     this.careCompositionTypeValue           = new List <CV>();
     this.diagnosisCodeValue = new CVImpl();
     this.drugCodeValue      = new CVImpl();
     this.includeEventHistoryIndicatorValue         = new BLImpl();
     this.includeIssuesIndicatorValue               = new BLImpl();
     this.includeNotesIndicatorValue                = new BLImpl();
     this.includePendingChangesIndicatorValue       = new BLImpl();
     this.mostRecentDispenseForEachRxIndicatorValue = new BLImpl();
     this.otherIndicationCodeValue = new CVImpl();
     this.symptomCodeValue         = new CVImpl();
 }
Esempio n. 47
0
        public void BLAndWithNullTest()
        {
            bool exceptionThrown = false;
            BL   stringCast      = new BL();

            try
            {
                stringCast.And(null);
            }
            catch (Exception)
            {
                exceptionThrown = true;
            }

            Assert.IsFalse(exceptionThrown);
        }
Esempio n. 48
0
        public void BLCastFromNullBLToBoolTest()
        {
            BL bl = new BL();

            bl.Value      = null;
            bl.NullFlavor = null;


            try {
                bool value = (bool)bl;
            }
            catch
            {
                Assert.IsFalse(false);
            }
        }
Esempio n. 49
0
 public RelatedSubject()
 {
     this.typeId            = new IIImpl();
     this.templateId        = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.code              = new CE_R2Impl <Ca.Infoway.Messagebuilder.Model.Ccda_r1_1.Domainvalue.FamilyMember>();
     this.addr              = new LISTImpl <AD, PostalAddress>(typeof(ADImpl));
     this.telecom           = new LISTImpl <TEL, TelecommunicationAddress>(typeof(TELImpl));
     this.subjectTypeId     = new IIImpl();
     this.subjectTemplateId = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.subjectId         = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.subjectName       = new LISTImpl <PN, PersonName>(typeof(PNImpl));
     this.subjectAdministrativeGenderCode = new CE_R2Impl <AdministrativeGender>();
     this.subjectBirthTime    = new TS_R2Impl();
     this.subjectDeceasedInd  = new BLImpl();
     this.subjectDeceasedTime = new TS_R2Impl();
 }
Esempio n. 50
0
 public ProfessionalService()
 {
     this.id                                    = new IIImpl();
     this.code                                  = new CDImpl();
     this.negationInd                           = new BLImpl();
     this.effectiveTime                         = new IVLImpl <TS, Interval <PlatformDate> >();
     this.confidentialityCode                   = new SETImpl <CV, Code>(typeof(CVImpl));
     this.performerActingPerson                 = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt911108ca.IActingPerson>();
     this.definitionActDefinition               = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Merged.ActDefinition>();
     this.predecessorOldProcedureEvent          = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Merged.OldProcedureEvent>();
     this.reason                                = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Merged.BecauseOf>();
     this.subjectOf1                            = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Merged.Includes>();
     this.subjectOf2AnnotationIndicator         = new BLImpl(false);
     this.componentOf1                          = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Iehr.Repc_mt610002ca.Component>();
     this.componentOf2PatientCareProvisionEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt011001ca.CareCompositions>();
 }
Esempio n. 51
0
 public OtherMedication()
 {
     this.id                                   = new SETImpl <II, Identifier>(typeof(IIImpl));
     this.code                                 = new CDImpl();
     this.statusCode                           = new CSImpl();
     this.effectiveTime                        = new IVLImpl <TS, Interval <PlatformDate> >();
     this.confidentialityCode                  = new SETImpl <CV, Code>(typeof(CVImpl));
     this.routeCode                            = new CVImpl();
     this.componentDosageInstruction           = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt270010ca.AdministrationInstructions>();
     this.subjectOf1ControlActEvent            = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Pharmacy.Merged.StatusChanges>();
     this.subjectOf2DetectedIssueIndicator     = new BLImpl(false);
     this.subjectOf3                           = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Merged.Includes>();
     this.subjectOf4AnnotationIndicator        = new BLImpl(false);
     this.subjectOf5DetectedIssueEvent         = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt260030ca.Issues>();
     this.componentOfPatientCareProvisionEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_02.Common.Coct_mt011001ca.CareCompositions>();
 }
        public MainWindow()
        {
            bl = new BL();

            InitializeComponent();

            shoppingUserControls = new List <shoppingUserControl>();

            model = new mainWindowsViewModel(bl, storePieChart, productPieChart);

            cmbProductTime.ItemsSource = bl.getProducts();

            cmbStoreTime.ItemsSource = bl.getStoresNames();

            DataContext = model;
        }
Esempio n. 53
0
        public BLUnitTests()
        {
            Mapper.Reset();
            Mapper.Initialize(config =>
            {
                config.AddProfile <MappingProfile>();
                config.AddProfile <ToBLProfile>();
            });

            Mapper.AssertConfigurationIsValid();

            tracking    = new Mock <ITrackingLogic>();
            warehouse   = new Mock <IWarehouseLogic>();
            geoencoding = new Mock <IGeoEncodingAgent>();
            _business   = new BL(tracking.Object, warehouse.Object, geoencoding.Object);
        }
Esempio n. 54
0
    protected void btn_upload_Click(object sender, EventArgs e)
    {
        if (FileUpload1.HasFile)
        {
            string filename = "";
            if (Session["id"] != null)
            {
                filename = Session["id"].ToString();
            }
            string path = Server.MapPath("~/upload");
            FileUpload1.SaveAs(path + "/" + filename);
            Label1.Text = "Certificates uploaded successfully..!!";

            //****************************************//
            //byte[] Image = null;
            //Image = new byte[FileUpload1.PostedFile.ContentLength];
            //cmd.Parameters.Add(new SqlParameter("@certification", SqlDbType.Image));
            //cmd.Parameters["@certification"].Value = Image;
            //********************************************//

            //=====================into database==========///

            BL         bl  = new BL();
            SqlCommand cmd = new SqlCommand();


            cmd.CommandText = "insert into DoctorProfile values(@PHRno,@speciality,@experience,@certification)";
            cmd.Parameters.Add("@PHRno", Session["phr"]);
            cmd.Parameters.Add("@speciality", ddl_speciality.Text);
            cmd.Parameters.Add("@experience", txt_experience.Text);
            cmd.Parameters.Add("@certification", filename);



            int result = bl.ExecuteNonQuery(cmd);

            if (result > 0)
            {
                Response.Write("<script>alert('Upload successful')</script>");
                Label1.Text = "Certificates uploaded successfully..!!";
            }
        }
        else
        {
            Label1.Text = "select file to upload..!!";
        }
    }
        public string Get(int PageIndex, int PageSize, DateTime?startTime, DateTime?endTime, string listStateIds, string listBizTypeIDs, string listDepartmentIDs, string listVendorIDs, string WechatID, string listQueryTypes)
        {
            if (!string.IsNullOrWhiteSpace(listStateIds))
            {
                //前端参数传错了 特殊处理
                if (listStateIds == "11,12,13,14,15")
                {
                    listStateIds = "7,8,9,10";
                }
                else if (listStateIds == "11")
                {
                    listStateIds = "7";
                }
                else if (listStateIds == "16")
                {
                    listStateIds = "11";
                }
            }

            List <int> listIntChargeBackStateIDs = DataHelper.GetListInt(listStateIds);

            if (!string.IsNullOrWhiteSpace(listQueryTypes))
            {
                List <int> listIntQueryTypes = DataHelper.GetListInt(listQueryTypes);

                foreach (int item in listIntQueryTypes)
                {
                    switch (item)
                    {
                    case (int)BaseSettings.QuoteQueryType.Commit: listIntChargeBackStateIDs.Add((int)BaseSettings.QuoteState.QuoteAwaitAudit1); break;

                    case (int)BaseSettings.QuoteQueryType.Audit1: listIntChargeBackStateIDs.Add((int)BaseSettings.QuoteState.QuoteAudit1Pass); break;

                    case (int)BaseSettings.QuoteQueryType.Audit2: listIntChargeBackStateIDs.Add((int)BaseSettings.QuoteState.QuoteAudit2Pass); break;
                    }
                }
            }

            return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetChargeBackList(
                                                                          DataHelper.GetListInt(listStateIds),
                                                                          DataHelper.GetListInt(listBizTypeIDs),
                                                                          DataHelper.GetListInt(listDepartmentIDs),
                                                                          DataHelper.GetListInt(listVendorIDs),
                                                                          DataHelper.GetDateTime(startTime),
                                                                          DataHelper.GetDateTimeAddOneDay(endTime)),
                                                                      PageIndex, PageSize)));
        }
Esempio n. 56
0
 public ParameterList()
 {
     this.batteryRequestStatusValue      = new CSImpl();
     this.includeHistoryIndicatorValue   = new BLImpl();
     this.includeNullifiedIndicatorValue = new BLImpl();
     this.includeResultsIndicatorValue   = new BLImpl();
     this.observationRequestAvailabilityDateTimeRangeValue = new IVLImpl <TS, Interval <PlatformDate> >();
     this.observationRequestStatusValue  = new CSImpl();
     this.orderEnteredDateTimeRangeValue = new IVLImpl <TS, Interval <PlatformDate> >();
     this.orderTestCodeValue             = new CDImpl();
     this.orderingProviderValue          = new IIImpl();
     this.patientDateofBirthValue        = new TSImpl();
     this.patientGenderValue             = new CVImpl();
     this.patientIDValue         = new IIImpl();
     this.patientNameValue       = new PNImpl();
     this.placerOrderNumberValue = new IIImpl();
 }
Esempio n. 57
0
 public CareComposition()
 {
     this.code                  = new CVImpl();
     this.negationInd           = new BLImpl();
     this.statusCode            = new CSImpl();
     this.effectiveTime         = new IVLImpl <TS, Interval <PlatformDate> >();
     this.confidentialityCode   = new SETImpl <CV, Code>(typeof(CVImpl));
     this.subject2Patient       = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Common.Coct_mt050202ca.Patient>();
     this.performerActingPerson = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Common.Coct_mt911108ca.IActingPerson>();
     this.location              = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Merged.OccurredAt>();
     this.outcomeDiagnosisEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Iehr.Merged.DischargeDiagnosis>();
     this.predecessorOldPatientCareProvisionEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Iehr.Merged.OldPatientCareProvisionEvent>();
     this.reason             = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Merged.BecauseOf>();
     this.component1ActEvent = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Iehr.Merged.ActEvent>();
     this.component2PatientCareProvisionEventPortion = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Iehr.Merged.ParticipantGroupings>();
     this.componentOfPatientCareProvisionEvent       = new List <Ca.Infoway.Messagebuilder.Model.Pcs_mr2009_r02_04_03.Common.Coct_mt011001ca.CareCompositions>();
 }
Esempio n. 58
0
 public QueryDefinition()
 {
     this.amendedSinceDateTimeValue      = new TSImpl();
     this.careCompositionIdValue         = new List <II>();
     this.careCompositionTypeValue       = new List <CV>();
     this.eHRRepositoryIdValue           = new IIImpl();
     this.effectiveTimeRangeValue        = new IVLImpl <TS, Interval <PlatformDate> >();
     this.eventLocationIdValue           = new IIImpl();
     this.eventLocationTypeValue         = new CVImpl();
     this.healthConditionValue           = new List <CD>();
     this.mostRecentByTypeIndicatorValue = new BLImpl();
     this.protocolIdValue              = new List <II>();
     this.recordStatusValue            = new List <CS>();
     this.recordTypeValue              = new List <CD>();
     this.responsibleProviderIdValue   = new IIImpl();
     this.responsibleProviderTypeValue = new CVImpl();
 }
Esempio n. 59
0
 public Immunizations()
 {
     this.id                                   = new IIImpl();
     this.code                                 = new CDImpl();
     this.negationInd                          = new BLImpl();
     this.effectiveTime                        = new TSImpl();
     this.confidentialityCode                  = new CVImpl();
     this.reasonCode                           = new CVImpl();
     this.routeCode                            = new CVImpl();
     this.approachSiteCode                     = new CVImpl();
     this.doseQuantity                         = new PQImpl();
     this.subjectOf1DetectedIssueEvent         = new List <Ca.Infoway.Messagebuilder.Model.Pcs_cerx_v01_r04_3.Pharmacy.Porx_mt980030ca.Issues>();
     this.subjectOf2Annotation                 = new List <Ca.Infoway.Messagebuilder.Model.Pcs_cerx_v01_r04_3.Common.Coct_mt120600ca.Notes>();
     this.subjectOf3DetectedIssueIndicator     = new BLImpl(false);
     this.subjectOf4AnnotationIndicator        = new BLImpl(false);
     this.causeAdverseReactionObservationEvent = new BLImpl(false);
 }
Esempio n. 60
-1
        internal static IQueryable<BL.DomainModel.OrderDetail> AdaptOrderDetails(EntityCollection<OrderDetail> orderDetailCollection, BL.DomainModel.Order o)
        {
            if (orderDetailCollection.IsLoaded == false)
            {
                return null;
            }

            var orderDetails = from d in orderDetailCollection.AsEnumerable()
                               select AdaptOrderDetail(d, o);
            return orderDetails.AsQueryable();
        }