Exemple #1
0
    public string GetOpCateName(string OpCatId)
    {
        string OpCateName = string.Empty;

        try
        {
            OpCateName = ObjOpCate.GetOptionCategoryTruebyId(StrCompId.ToString(), OpCatId.ToString()).Rows[0]["EName"].ToString();
        }
        catch
        {
        }
        return(OpCateName);
    }
Exemple #2
0
    protected void btnEdit_Command(object sender, CommandEventArgs e)
    {
        editid.Value = e.CommandArgument.ToString();
        DataTable dt = objOptionCategory.GetOptionCategoryTruebyId(StrCompId.ToString(), editid.Value);

        if (dt.Rows.Count != 0)
        {
            txtOpCateName.Text         = dt.Rows[0]["EName"].ToString();
            txtlblOpCateNameLocal.Text = dt.Rows[0]["LName"].ToString();

            txtOpCateName.Focus();
        }
        btnNew.Text = Resources.Attendance.Edit;
    }