예제 #1
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     objReviews = new tblReviews();
     objReviews.LoadByPrimaryKey(Convert.ToInt32(hdnPKID.Value));
     objReviews.s_AppPublishedBy  = Session[appFunctions.Session.UserID.ToString()].ToString();
     objReviews.AppPublishedDate  = GetDateTime();
     objReviews.s_AppReviewStatus = Convert.ToInt32(Enums.Enum_ReviewStatus.Approved).ToString();
     objReviews.Save();
     LoadDataGrid(true, false);
 }
예제 #2
0
    private bool Reject(int intPKID)
    {
        bool retval = false;

        objReviews = new tblReviews();
        if (objReviews.LoadByPrimaryKey(intPKID))
        {
            if (objReviews.RowCount > 0)
            {
                objReviews.s_AppRemark     = txtRemark.Text;
                objReviews.AppReviewStatus = Convert.ToInt32(Enums.Enum_ReviewStatus.Rejected);
                objReviews.Save();
            }
            objReviews = null;
        }
        retval     = true;
        objReviews = null;
        return(retval);
    }
예제 #3
0
    private bool Approve(int intPKID)
    {
        bool retval = false;

        objReviews = new tblReviews();
        if (objReviews.LoadByPrimaryKey(intPKID))
        {
            if (objReviews.RowCount > 0)
            {
                objReviews.s_AppPublishedBy = Session[appFunctions.Session.UserID.ToString()].ToString();
                objReviews.AppPublishedDate = GetDateTime();
                objReviews.AppRemark        = "";
                objReviews.AppReviewStatus  = Convert.ToInt32(Enums.Enum_ReviewStatus.Approved);
                objReviews.Save();
            }
            objReviews = null;
        }
        retval     = true;
        objReviews = null;
        return(retval);
    }