protected void CarePlanListView_OnNeedDataSource(Object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            Telerik.Web.UI.RadListView CarePlanListView = (Telerik.Web.UI.RadListView)sender;

            Telerik.Web.UI.RadListViewDataItem selectedProblemClassDataItem = (Telerik.Web.UI.RadListViewDataItem)CarePlanListView.Parent;

            Int32 selectedProblemClassIndex = selectedProblemClassDataItem.DataItemIndex;

            Client.Core.Individual.Case.MemberCaseProblemClass selectedProblemClass = Case.ProblemClasses[selectedProblemClassIndex];

            switch (e.RebindReason)
            {
            case Telerik.Web.UI.RadListViewRebindReason.InitialLoad:

            case Telerik.Web.UI.RadListViewRebindReason.ExplicitRebind:

            case Telerik.Web.UI.RadListViewRebindReason.PostBackEvent:

                CarePlanListView.DataSource = selectedProblemClass.ProblemCarePlans;

                restoreSelection = true;

                break;
            }

            return;
        }
Exemple #2
0
    protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
    {
        var q = from i in dc.Tbltables.ToList()
                select new
        {
            ID          = i.Tablename,
            TableNumber = i.Tabledescription,
        };

        lTable.DataSource = q.ToList();
    }
Exemple #3
0
        protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            DataSet ds = new DataSet();

            ds = Orders_Bll.GetList3(" a.OrderState = '待付款' ");
            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                Maticsoft.Model.Orders modelorders = new Maticsoft.Model.Orders();
                modelorders            = Orders_Bll.GetModel(dr["OrderID"].ToString());
                modelorders.OrderState = "订单取消";
                Orders_Bll.Update(modelorders);
            }
            RadListView1.DataSource = Orders_Bll.GetList2("UserID='" + UsersInfo.UserID + "'");
        }
        protected void ProblemClassListView_OnNeedDataSource(Object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            switch (e.RebindReason)
            {
            case Telerik.Web.UI.RadListViewRebindReason.InitialLoad:

            case Telerik.Web.UI.RadListViewRebindReason.ExplicitRebind:

            case Telerik.Web.UI.RadListViewRebindReason.PostBackEvent:

                ProblemClassListView.DataSource = Case.ProblemClasses;

                break;
            }

            return;
        }
        protected void MemberCaseCarePlanListView_OnNeedDataSource(Object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            switch (e.RebindReason)
            {
            case Telerik.Web.UI.RadListViewRebindReason.InitialLoad:

            case Telerik.Web.UI.RadListViewRebindReason.ExplicitRebind:

            case Telerik.Web.UI.RadListViewRebindReason.PostBackEvent:

                MemberCaseCarePlanListView.DataSource = CarePlansDataSource;

                break;
            }

            return;
        }
Exemple #6
0
 protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     if (UsersInfo.UserID == "")
     {
         RadListView1.DataSource = ShoppingCar.ShoppingList.OrderBy(x => x.ShoppingCartID);
         decimal sum = 0;
         foreach (var item in ShoppingCar.ShoppingList)
         {
             sum = sum + Convert.ToDecimal(item.Subtotal);
         }
         Lbl_totalprice.Text = sum.ToString();
     }
     else
     {
         RadListView1.DataSource = ShoppingCart_Bll.GetList2("a.CommodityID = b.CommodityID and a.UserID='" + UsersInfo.UserID + "'");
         Lbl_totalprice.Text     = ShoppingCart_Bll.GetList3("UserID='" + UsersInfo.UserID + "'").Tables[0].Rows[0][0].ToString();
     }
 }
 protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadListView1.DataSource = partsChoice.partsChoiceList.OrderBy(x => x.PartID);//绑值
     foreach (var item in partsChoice.partsChoiceList)
     {
         aaa += Convert.ToDecimal(item.Partmoney);
     }
     if (partsChoice.partsChoiceList.Count <= 5)
     {
         RadDataPager1.Visible = false;
     }
     else
     {
         RadDataPager1.Visible = true;
     }
     Label5.Text   = aaa.ToString();                                                                                               //合计
     TextBox1.Text = Convert.ToString(Convert.ToDecimal(Label5.Text) + Convert.ToDecimal(TextBox2.Text));
     Label9.Text   = Convert.ToString(Convert.ToDouble(Convert.ToDecimal(Label5.Text) + Convert.ToDecimal(TextBox2.Text)) * 0.95); //计算值
 }
        protected void RadListViewPatient_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            Sec_Users user = null;

            if (Session["user"] != null)
            {
                user = Session["user"] as Sec_Users;
                if (user.Sec_UserType.name.ToLower() != "patient")
                {
                    Response.Redirect("~/Login.aspx");
                }
            }
            else
            if (Session["user"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            RadListViewPatient.DataSource = getPatientInfo(getPatientIdByUserId(user.id));
        }
Exemple #9
0
 protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadListView1.DataSource = ImgList;
 }
        protected void AssessmentCareMeasureComponentsListView_OnNeedDataSource(Object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            if (MemberCaseCarePlan == null)
            {
                return;
            }

            Telerik.Web.UI.RadListView AssessmentCareMeasureComponentsListView = (Telerik.Web.UI.RadListView)sender;

            Client.Core.Individual.CareMeasureScale careMeasureScale = (Client.Core.Individual.CareMeasureScale)((Telerik.Web.UI.RadListViewDataItem)AssessmentCareMeasureComponentsListView.Parent).DataItem;

            Client.Core.Individual.Case.MemberCaseCarePlanAssessmentCareMeasure assessmentCareMeasure = (Client.Core.Individual.Case.MemberCaseCarePlanAssessmentCareMeasure)((Telerik.Web.UI.RadListViewDataItem)((Telerik.Web.UI.RadListViewDataItem)AssessmentCareMeasureComponentsListView.Parent).Parent.Parent.Parent).DataItem;

            if (careMeasureScale == null)
            {
                return;
            }

            if (assessmentCareMeasure == null)
            {
                return;
            }


            switch (e.RebindReason)
            {
            case Telerik.Web.UI.RadListViewRebindReason.InitialLoad:

                AssessmentCareMeasureComponentsListView.DataSource = assessmentCareMeasure.ComponentsByScale(careMeasureScale.Id);

                break;

            case Telerik.Web.UI.RadListViewRebindReason.ExplicitRebind:

                break;

            case Telerik.Web.UI.RadListViewRebindReason.PostBackEvent:

                break;

            case Telerik.Web.UI.RadListViewRebindReason.PostbackViewStateNotPersisted:

                break;
            }

            return;
        }
        protected void AssessmentCareMeasuresListView_OnNeedDataSource(Object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            if (MemberCaseCarePlan == null)
            {
                return;
            }

            switch (e.RebindReason)
            {
            case Telerik.Web.UI.RadListViewRebindReason.InitialLoad:

                AssessmentCareMeasuresListView.DataSource = Assessment.Measures;

                // MemberCaseCarePlanAssessmentCareMeasureTreeList.DataSource = assessment.Measures;

                break;

            case Telerik.Web.UI.RadListViewRebindReason.ExplicitRebind:

                break;

            case Telerik.Web.UI.RadListViewRebindReason.PostBackEvent:

                break;

            case Telerik.Web.UI.RadListViewRebindReason.PostbackViewStateNotPersisted:

                break;
            }

            return;
        }
Exemple #12
0
 protected void RadLV_Father1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadLV_Father1.DataSource = CommodityFather_Bll.GetList2("");
 }
Exemple #13
0
 protected void RadLVVipjfph_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadLVVipjfph.DataSource = Users_Bll.GetList(0, "  ", "UserScore desc");
 }
Exemple #14
0
 protected void RadLVzshyph_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadLVzshyph.DataSource = Commodity_Bll.GetList(0, "  ", "CommoditySaled desc");
 }
Exemple #15
0
 protected void RadLVtuijiansp_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadLVtuijiansp.DataSource = Commodity_Bll.GetList2(0, " Recommend = '推荐' and CommodityState='上架' or Stock <0 ", "CommodityTime desc");
 }
Exemple #16
0
 protected void RadLV_Son_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     //RadLV_Son.DataSource = CommoditySon_Bll.GetList("");
 }
Exemple #17
0
 protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadListView1.DataSource = OrderDetail_Bll.GetList4("a.CommodityID = b.CommodityID and OrderID='" + Request.QueryString["OrderID"] + "' and a.UserID='" + UsersInfo.UserID + "'");
 }
Exemple #18
0
 protected void RadLV_splb_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadLV_splb.DataSource = Commodity_Bll.GetList(sqlselect);
 }
Exemple #19
0
 protected void RadLV_splb_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadLV_splb.DataSource = Commodity_Bll.GetList4("a.CommodityID = b.CommodityID and b.UserID='" + UsersInfo.UserID + "'");
 }
Exemple #20
0
 protected void RadListView2_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     RadListView2.DataSource = PartType_BLL.GetList("(select COUNT(*) from Part where Part.PartTypeID=PartType.PartTypeID)>0");//赋值排除没有子类的父类
 }
Exemple #21
0
 protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     select();
 }
 protected void rlvComentarios_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
 {
     rlvComentarios.DataSource = negocio.ObtenerComentarios_Comunicado(null, vIdComunicado);
 }