Ejemplo n.º 1
0
    private void GetData()
    {
        ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
        DataTable   theDT         = CustomManager.GetCustomMasterDetails(ViewState["TableName"].ToString(), Convert.ToInt32(ViewState["Id"]), Convert.ToInt32(Session["SystemId"]));

        txtName.Text  = theDT.Rows[0]["Name"].ToString();
        txtSeqNo.Text = theDT.Rows[0]["SRNO"].ToString();
        if (ViewState["TableName"].ToString() == "Frequency")
        {
            if (theDT.Rows[0]["multiplier"].ToString() != "0")
            {
                txtmultiplier.Text = theDT.Rows[0]["multiplier"].ToString();
            }
            if (theDT.Rows[0]["multiplier"].ToString() != "0")
            {
                rdinteger.Checked = true;
            }
            else
            {
                rdnomultiplier.Checked = true;
            }
        }
        if (theDT.Rows[0]["DeleteFlag"].ToString() != "")
        {
            if (Convert.ToBoolean(Convert.ToInt32(theDT.Rows[0]["DeleteFlag"])) == true)
            {
                ddStatus.SelectedValue = "1";
            }
        }
    }
        private void GetData()
        {
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataTable   theDT         = CustomManager.GetCustomMasterDetails(ViewState["TableName"].ToString(), Convert.ToInt32(ViewState["Id"]), Convert.ToInt32(Session["SystemId"]));

            txtName.Text  = theDT.Rows[0]["Name"].ToString();
            txtSeqNo.Text = theDT.Rows[0]["SRNO"].ToString();
            txtcode.Text  = theDT.Rows[0]["Code"].ToString();

            if (Convert.ToBoolean(Convert.ToInt32(theDT.Rows[0]["DeleteFlag"])) == true)
            {
                ddStatus.SelectedValue = "1";
            }
        }
Ejemplo n.º 3
0
    private void GetData()
    {
        ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
        DataTable   theDT         = CustomManager.GetCustomMasterDetails(Convert.ToString(Request.QueryString["TableName"]), Convert.ToInt32(Request.QueryString["SelectedId"]), Convert.ToInt32(Session["SystemId"]));

        txtName.Text  = theDT.Rows[0]["Name"].ToString();
        txtSeqNo.Text = theDT.Rows[0]["SRNO"].ToString();

        if (theDT.Rows[0]["DeleteFlag"].ToString() != "")
        {
            if (Convert.ToBoolean(Convert.ToInt32(theDT.Rows[0]["DeleteFlag"])) == true)
            {
                ddStatus.SelectedValue = "1";
            }
        }
        if (Convert.ToInt32(Request.QueryString["Fid"]) == 31)
        {
            ddType.SelectedValue = "1";
        }
        else if (Convert.ToInt32(Request.QueryString["Fid"]) == 32)
        {
            ddType.SelectedValue = "0";
        }
    }