protected void btnsave_Click(object sender, EventArgs e)
    {
        ObjProp.id     = Convert.ToInt32(lblId.Text);
        ObjProp.Amount = Convert.ToInt32(txtAmount.Text == "" ? "0" : txtAmount.Text);
        ObjProp.SendTo = Convert.ToInt32(rbtnSendTo.Checked);
        //ObjProp.Emailids = txtEmailIds.Text.Trim();
        ObjProp.FY        = Convert.ToInt32(Session["FY"]);
        ObjProp.CreatedBy = Session["UserName"].ToString();
        ObjProp.Flag      = "a";
        ObjProp.R1        = "";
        ObjProp.R2        = "";
        ObjProp.R3        = "";
        ObjProp.R4        = "";
        ObjProp.R5        = "";
        int MaxId;

        if (Request.QueryString["For"] == "a")
        {
            ObjDAL.Idv_Chetana_Save_AutoOutStandingConfig(ObjProp, out MaxId);
            lblId.Text = MaxId.ToString();
            txtAmount.Focus();
        }
        else
        {
            ObjProp.Amount = Convert.ToInt32("0");
            ObjProp.CC     = txtCC.Text;
            ObjProp.Flag   = "c";
            ObjDAL.Idv_Chetana_Save_AutoOutStandingConfig(ObjProp, out MaxId);
            lblId.Text = MaxId.ToString();
            txtCC.Focus();
        }
        MessageBox("Data Save Successfully");
    }
Exemplo n.º 2
0
        public override Dictionary <string, string> GetParameters()
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            if (UserId != 0)
            {
                parameters.Add("user_id", UserId.ToString());
            }
            if (!string.IsNullOrEmpty(ScreenName))
            {
                parameters.Add("screen_name", ScreenName.Trim());
            }
            if (SinceId != 0)
            {
                parameters.Add("since_id", SinceId.ToString());
            }
            if (Count != 0)
            {
                parameters.Add("count", Count.ToString());
            }
            if (MaxId != 0)
            {
                parameters.Add("max_id", MaxId.ToString());
            }
            if (ExcludeReplies)
            {
                parameters.Add("exclude_replies", ExcludeReplies.ToString());
            }
            if (!IncludeRTs)
            {
                parameters.Add("include_rts", IncludeRTs.ToString());
            }

            return(parameters);
        }
Exemplo n.º 3
0
        public override Dictionary <string, string> GetParameters()
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>
            {
                { "q", Query }
            };

            if (Feed != FeedType.All)
            {
                parameters.Add("f", Feed.ToString().ToLower());
            }
            if (Count > 0)
            {
                parameters.Add("count", Count.ToString());
            }
            parameters.Add("include_entities", IncludeEntities.ToString().ToLower());
            if (ResultType != ResultTypeOptions.Recent)
            {
                parameters.Add("result_type", ResultType.ToString().ToLower());
            }
            if (SinceId != 0)
            {
                parameters.Add("since_id", SinceId.ToString());
            }
            if (MaxId != 0)
            {
                parameters.Add("max_id", MaxId.ToString());
            }

            parameters.Add("tweet_mode", "extended");

            return(parameters);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Converts the request to a name-value pair dictionary.
        /// </summary>
        /// <returns>Request as a dictionary.</returns>
        public Dictionary <string, string> ToDictionary()
        {
            var dictionary = new Dictionary <string, string>
            {
                { "q", Query },
                { "include_entities", IncludeEntities.ToString() },
                { "count", Count.ToString() },
                { "result_type", ResultType }
            };

            if (MaxId != null)
            {
                dictionary.Add("max_id", MaxId.ToString());
            }

            return(dictionary);
        }