public void FillGridView()
 {
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     PaperReport paperReport = paperInfoMan.GetPaperListForLanguageEditor(txtbTitle.Text);
     gvPapers.DataSource = paperReport.Papers;
     gvPapers.DataBind();
 }
 public void FillGridView()
 {
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     PaperReport paperReport = paperInfoMan.GetPaperListForEditor(int.Parse(ddlChefEditor.SelectedValue), txtbTitle.Text, txtbKeyWord.Text);
     gvPapers.DataSource = paperReport.Papers;
     gvPapers.DataBind();
 }
    protected void btnUpload_Click(object sender, EventArgs e)
    {
        HttpPostedFile pofPDF = fuPDF.PostedFile;
        HttpPostedFile pofDOC = fuDOC.PostedFile;
        HttpPostedFile pofFigure = fuFigures.PostedFile;
        HttpPostedFile TableOfContent = fuTable.PostedFile;
        string Comment = txtbComment.Text;
        //
        PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
        int paperID = System.Convert.ToInt32(FormBase.UrlDecode(Request[RequestMSG.SubmitOnline]));
        DBmessage dbm = paperInfoMan.RegisterPaper_Step3(pofPDF, pofDOC, pofFigure, TableOfContent, Comment, paperID);
        if (dbm.Type == DBMessageType.Sucsess)
        {
            FormBase.SendRequest(ServerDirectory.Paper + "/SubmitOnline_Step4.aspx", new string[] { RequestMSG.SubmitOnline }, new string[] { paperID.ToString() });
        }
        else
            ShowNotify(dbm);
        //string FileName = System.IO.Path.GetFileName(soPostedFile.FileName);
        //if (soPostedFile == null)
        //{
        //    return;
        //}
        //string strFileName = System.IO.Path.GetFileName(soPostedFile.FileName);
        //string strFileExtension = System.IO.Path.GetExtension(strFileName).ToUpper();
        //if ((strFileExtension != ".DOCX") && (strFileExtension != ".DOC"))
        //{
        //    //  DisplayErrorMessage("You Can Upload Just Doc  & Docx");
        //    return;
        //}

        //string strRootRelativePath = "~/Uploaded";
        //string strPath = Server.MapPath(strRootRelativePath);
        //string strPathName = string.Format("{0}\\{1}{2}", strPath, strFileName, strFileExtension);
        //soPostedFile.SaveAs(strPathName);
    }
 public void FillGridView()
 {
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     PaperReport paperReport = paperInfoMan.GetPaperListForAuther();
     gvPapers.DataSource = paperReport.Papers;
     gvPapers.DataBind();
 }
 protected void btnStep3_Click(object sender, EventArgs e)
 {
     DBmessage dbm = new DBmessage(DBMessageType.Error, SystemMessage_DBMessage.NotRegisterOnePersonFullInfo);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     List<PaperWriter> paperWriters = new List<PaperWriter>();
     string[] names = hfFirstName.Value.Split(',');
     string[] lastnames = hflastName.Value.Split(',');
     string[] incharge = hfIncharge.Value.Split(',');
     for (int i = 0; i < names.Length - 1; i++)
     {
         if (names[i] != string.Empty && lastnames[i] != string.Empty)
             paperWriters.Add(new PaperWriter()
             {
                 Fname = names[i],
                 Lname = lastnames[i],
                 Responsibility = new PaperWriterResponsibility(Resposibility(incharge[i]))
             });
     }
     int paperID = System.Convert.ToInt32(FormBase.UrlDecode(Request[RequestMSG.PaperID]));
     if (paperWriters.Count > 0)
         dbm = paperInfoMan.ReviseByAuthor_Step2(paperWriters, paperID);
     if (dbm.Type == DBMessageType.Sucsess)
     {
         FormBase.SendRequest(ServerDirectory.Paper + "/ReviseByAuthor_Step3.aspx", new string[] { RequestMSG.PaperID }, new string[] { paperID.ToString() });
     }
     else
         ShowNotify(dbm);
 }
 protected void btnAcceptArbitration_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage dbm = paperInfoMan.AcceptByReferee(paperID);
     FillInfo();
     ShowNotify(dbm);
 }
Ejemplo n.º 7
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        PaperInfoMan_Business bus = new PaperInfoMan_Business();
        List<User_cls> refereee = new List<User_cls>();
        refereee.Add(new User_cls() { Fname = "hossein", Lname = "eshaghi", Email = "[email protected]" });
        refereee.Add(new User_cls() { Fname = "hossein2", Lname = "eshaghi2", Email = "[email protected]" });
        refereee.Add(new User_cls() { Fname = "ehsan", Lname = "haghani", Email = "[email protected]" });

        bus.RegisterPaper_Step4(refereee, 1010);
    }
Ejemplo n.º 8
0
 protected void btnStep2_Click(object sender, EventArgs e)
 {
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage dbm = paperInfoMan.RegisterPaper_Step1(txtbTitle.Text, txtbAbstract.Text, txtbKeyWord.Text, txtbFeildPaper.Text);
     Paper paper = (Paper)dbm.Parameter["paper"];
     if (dbm.Type == DBMessageType.Sucsess)
         FormBase.SendRequest(ServerDirectory.Paper + "/SubmitOnline_Step2.aspx", new string[] { RequestMSG.SubmitOnline }, new string[] { paper.ID.ToString() });
     else
         ShowNotify(dbm);
 }
 private void FillInfo()
 {
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     if (Request[RequestMSG.PaperID] != null)
     {
         int paperID = Convert.ToInt32(Request[RequestMSG.PaperID]);
         evaluations = paperInfoMan.GetEvaluate(paperID);
     }
     else
         Response.Redirect(ServerDirectory.Host + "Dashboard.aspx");
 }
 protected void btnUpload_Click(object sender, EventArgs e)
 {
     HttpPostedFile pofPDF = fuPDF.PostedFile;
     HttpPostedFile pofDOC = fuDOC.PostedFile;
     HttpPostedFile pofFigure = fuFigures.PostedFile;
     HttpPostedFile TableOfContent = fuTable.PostedFile;
     string Comment = txtbComment.Text;
     //
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     int paperID = System.Convert.ToInt32(FormBase.UrlDecode(Request[RequestMSG.PaperID]));
     DBmessage dbm = paperInfoMan.ReviseByAuthor_Step3(paperID,pofPDF, pofDOC, pofFigure, TableOfContent);
     if (dbm.Type == DBMessageType.Sucsess)
         FormBase.SendRequest(ServerDirectory.Paper + "/PaperListAuthor.aspx", new string[] { RequestMSG.Msg, RequestMSG.Type }, new string[] { dbm.Message, dbm.Type.ToString() });
     else
         ShowNotify(dbm);
 }
Ejemplo n.º 11
0
 protected void Submit_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.PaperID]);
     string[] OptionalQuestionsAnswer = hfOptions.Value.Split(',');
     string[] temp;
     for (int i = 0; i < evaluation.Count; i++)
     {
         if (evaluation[i] is WrittenQuestions)
         {
             WrittenQuestions written = (WrittenQuestions)evaluation[i];
             written.Answertext = Request.Form["writtenAnswer" + i];
         }
         else if (evaluation[i] is NumericQuestion)
         {
             NumericQuestion numeric = (NumericQuestion)evaluation[i];
             numeric.Score = Convert.ToInt32(Request.Form["numericAnswer" + i]);
         }
         else if (evaluation[i] is Multiple_ChoiceQuestions)
         {
             Multiple_ChoiceQuestions optional = (Multiple_ChoiceQuestions)evaluation[i];
             bool ExistOption = false;
             for (int j = 0; j < OptionalQuestionsAnswer.Length; j++)
             {
                 temp = OptionalQuestionsAnswer[j].Split('_');
                 if (temp[0] == i.ToString())
                 {
                     ExistOption = optional.SelectAnswerItem(Convert.ToInt32(temp[1]));
                     if (!ExistOption)
                         throw new MyException(QuestionEvaluation_Message.SuchAnOptionIsNotAvailable, 101, "");
                     ExistOption = false;
                 }
             }
         }
     }
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     List<string> files = new List<string>();
     DBmessage dbm = paperInfoMan.SetPointToPaperByReferee(paperID, files, evaluation);
     if (dbm.Type == DBMessageType.Sucsess)
         Response.Redirect(ServerDirectory.Paper + "/PaperInformation.aspx?" + RequestMSG.ID + "=" + paperID);
     else
         ShowNotify(dbm);
 }
 public void FillInfo()
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     info = paperInfoMan.GetPaperInfo(paperID);
     if (info != null)
     {
         btnRefereesSelection.Visible = info.CanBeSelectRefrees;
         btnEditorSelection.Visible = info.CanBeSelectEditorByChefEditor;
         btnLanguageEditorSelection.Visible = info.CanBeSelectLanguageEditor;
         btnAcceptByChefEditor.Visible = info.CanBeAcceptByChefEditor;
         ddlEvaluationForm.Visible = info.CanBeAcceptByChefEditor;
         btnRejectByChefEditor.Visible = info.CanBeRejectByChefEditor;
         btnAcceptArbitration.Visible = info.CanBeAcceptByReferee;
         btnRejectArbitrationArticle.Visible = info.CanBeRejectByReferee;
         btnEvaluation.Visible = info.CanBeEvaluatByReferee;
         btnRevise.Visible = info.CanBeReviseByEditor;
         btnReviseComment.Visible = info.CanBeReviseByEditor;
         btnReviseByAuthor.Visible = info.CanBeReviseByAuthor_Step1;
         //btnRefereesOpinion.Visible = info.canbe
         btnFinalApproval.Visible = info.CanBeTechnicalApproval;
         //
         lblTitle.Text = info.Title;
         lblAbstract.Text = info.Abstracts;
         lblFieldPaper.Text = info.Feilds;
         lblKeyWord.Text = info.Keyword;
         //------Fill GridView --------//
         gvAuthors.DataSource = info.Authors;
         DataBind();
         //
         gvReferees.DataSource = info.Referees;
         DataBind();
         //-----------Files------------//
         QuestionInfoMan_Business questionInfoMan = new QuestionInfoMan_Business();
         List<EvaluationForm> list = questionInfoMan.GetEvaluationForms();
         for (int i = 0; i < list.Count; i++)
         {
             ddlEvaluationForm.Items.Add(new ListItem(list[i].Title, list[i].ID.ToString()));
         }
     }
 }
 protected void btnFinalApproval_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage dbm = paperInfoMan.TechnicalApproval(paperID);
     ShowNotify(dbm);
     FillInfo();
 }
 protected void btnRevise_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage msg = paperInfoMan.ReviseByEditor(paperID, txtbReviseComment.InnerText);
     ShowNotify(msg);
 }
 protected void lnkbDelete_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     LinkButton lnkb = (LinkButton)sender;
     int refereeID = 0;
     if (lnkb != null)
         refereeID = Convert.ToInt32(lnkb.CommandArgument);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage dbm = paperInfoMan.RemoveReferee(paperID, refereeID);
     ShowNotify(dbm);
     FillInfo();
 }
 protected void btnAcceptByChefEditor_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage dbm = paperInfoMan.AcceptByChefEditor(paperID, Convert.ToInt32(ddlEvaluationForm.SelectedValue));
     FillInfo();
     ShowNotify(dbm);
 }
 protected void btnRejectByChefEditor_Click(object sender, EventArgs e)
 {
     int paperID = Convert.ToInt32(Request[RequestMSG.ID]);
     PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business();
     DBmessage dbm = paperInfoMan.RejectByChefEditor(paperID);
     ShowNotify(dbm);
 }