protected override void OnInit(EventArgs e)
        {
            string tableName = DataSecurity.FilterBadChar(BasePage.RequestString("TableName", "PE_Client"));
            string fieldName = DataSecurity.FilterBadChar(BasePage.RequestString("FieldName", "Area"));

            this.choicesetInfo = Choiceset.GetChoicesetInfoByFieldAndTableName(tableName, fieldName);
            this.CreateFormFieldValueTable();
            base.OnInit(e);
        }
Beispiel #2
0
 protected void BindDeliveryTime()
 {
     string[] strArray = Choiceset.GetChoicesetInfoByFieldAndTableName("PE_Orders", "DeliveryTime").FieldValue.Replace("|1|", ",").Split(new char[] { ',' });
     for (int i = 0; i < (strArray.Length - 1); i++)
     {
         ListItem item = new ListItem(strArray[i].ToString().Replace("1$", "").Replace("0$", "").Trim());
         if (!strArray[i].ToString().StartsWith("1$", StringComparison.Ordinal) && !strArray[i].ToString().StartsWith("0$", StringComparison.Ordinal))
         {
             item.Selected = true;
         }
         this.dropDeliverTime.Items.Add(item);
     }
 }