/// <summary>
        /// 检索条件
        /// </summary>
        /// <returns></returns>
        public List <ConditionFun.SqlqueryCondition> OrderCondition()
        {
            List <ConditionFun.SqlqueryCondition> orderCon = new List <ConditionFun.SqlqueryCondition>();

            FineUI.RadioButtonList datetype = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("ddrDataType") as FineUI.RadioButtonList;
            string rValue = datetype.SelectedValue;

            FineUI.DatePicker wst       = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker;
            FineUI.DatePicker wet       = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker;
            string            starttime = wst.Text;
            string            endtime   = wet.Text;

            string _shopid = ddlIN_SHOP.SelectedValue;

            orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.SHOP_ID, Comparison.Equals, _shopid, false, false));
            orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.STATUS, Comparison.GreaterOrEquals, "2", false, false));
            orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.EXPORTED, Comparison.GreaterOrEquals, "0", false, false));
            if (rValue == "1")
            {
                orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.INPUT_DATE, Comparison.LessOrEquals, endtime, false, false));
                orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.INPUT_DATE, Comparison.GreaterOrEquals, starttime, false, false));
            }
            else
            {
                orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.EXPECT_DATE, Comparison.LessOrEquals, endtime, false, false));
                orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.EXPECT_DATE, Comparison.GreaterOrEquals, starttime, false, false));
            }



            return(orderCon);
        }
        /// <summary>
        /// 检索条件
        /// </summary>
        /// <returns></returns>
        public List <ConditionFun.SqlqueryCondition> OrderCondition()
        {
            List <ConditionFun.SqlqueryCondition> orderCon = new List <ConditionFun.SqlqueryCondition>();

            FineUI.RadioButtonList datetype = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("ddrDataType") as FineUI.RadioButtonList;
            string rValue = datetype.SelectedValue;

            FineUI.DatePicker wst       = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker;
            FineUI.DatePicker wet       = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker;
            string            starttime = wst.Text;
            string            endtime   = wet.Text;

            if (rValue == "1")
            {
                orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.Where, OUT_BACK00Table.INPUT_DATE, Comparison.LessOrEquals, endtime, false, false));
                orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, OUT_BACK00Table.INPUT_DATE, Comparison.GreaterOrEquals, starttime, false, false));
            }
            //FineUI.DropDownList _ddlShopName = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("w4_ddlSHOP_NAME") as FineUI.DropDownList;
            //string _shopid = _ddlShopName.SelectedValue;
            //if (!String.IsNullOrEmpty(_shopid))
            //{
            //    orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.SHOP_ID, Comparison.Equals, _shopid, false, false));
            //}
            return(orderCon);
        }
Beispiel #3
0
        public void InitIconList(FineUI.RadioButtonList iconList)
        {
            string[] icons = new string[] { "tag_yellow", "tag_red", "tag_purple", "tag_pink", "tag_orange", "tag_green", "tag_blue" };
            foreach (string icon in icons)
            {
                string value = String.Format("~/icon/{0}.png", icon);
                string text  = String.Format("<img style=\"vertical-align:bottom;\" src=\"{0}\" />&nbsp;{1}", ResolveUrl(value), icon);

                iconList.Items.Add(new RadioItem(text, value));
            }
        }
Beispiel #4
0
 //----------------------------------------------------
 // 辅助方法
 //----------------------------------------------------
 // 菜单图标列表
 public void BindIcons(string selectImageUrl = "")
 {
     FineUI.RadioButtonList iconList = this.iconList;
     iconList.Items.Clear();
     string[] icons = new string[] { "tag_yellow", "tag_red", "tag_purple", "tag_pink", "tag_orange", "tag_green", "tag_blue", "folder", "page" };
     foreach (string icon in icons)
     {
         string value = String.Format("~/res/icon/{0}.png", icon);
         string text  = String.Format("<img style=\"vertical-align:bottom;\" src=\"{0}\" />&nbsp;{1}", ResolveUrl(value), icon);
         iconList.Items.Add(new RadioItem(text, value));
     }
     if (!string.IsNullOrEmpty(selectImageUrl))
     {
         iconList.SelectedValue = selectImageUrl;
     }
 }