Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs	(revision 106)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs	(revision 107)
@@ -731,11 +731,11 @@
 
                 if (dgvCompany.Visible == true)
                 {
-                    sql.AppendLine("order by Scm.DISPLAYORDER ASC, Bdd.SEQNO ASC, case when Bdd.CONSTRUCTIONCODE = 0 Then  2099999999 else Bdd.LINECOUNT end ");
+                    sql.AppendLine("order by Scm.DISPLAYORDER ASC, Bdd.SEQNO DESC, case when Bdd.CONSTRUCTIONCODE = 0 Then  2099999999 else Bdd.LINECOUNT end ");
                  }
                 else if (dgvProject.Visible == true)
                 {
-                    sql.AppendLine("order by Bdd.CONSTRUCTIONCODE DESC,Scm.DISPLAYORDER ASC,Bdd.SEQNO ASC,Bdd.LINECOUNT ASC ");
+                    sql.AppendLine("order by Bdd.CONSTRUCTIONCODE DESC, Scm.DISPLAYORDER ASC ,Bdd.SEQNO ASC ,Bdd.LINECOUNT ASC ");
                 }
 
                 // ƒf�[ƒ^Žæ“¾�@�¬Œv�E�‡Œv‚ðŒvŽZ‚·‚éˆ×�A‘S‚Ä‚Ìƒf�[ƒ^‚ðŽæ“¾‚·‚é
@@ -1807,31 +1807,31 @@
 
                 if(!m_initDataLoad) m_bChengeAns = true;
 
-                // �V‹K’Ç‰Á
-                if (dgvCompany.Visible == true && btnAddCompany.Enabled == true &&
-                    (e.ColumnIndex >= (int)DispColumn.SomuSeikyu && e.ColumnIndex < (int)DispColumn.KojiSeikyu))
-                {
-                    int GoukeiSeqNo;
-                    string cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[Code_Column].Value) == CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value) && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
-                                                                    .Max(x => (string)x.Cells[(int)DispColumn.GoukeiSeqNo].Value.ToString());
-                    if (cell != null)
-                    {
-                        GoukeiSeqNo = CommonMotions.cnvInt(cell);
-                        if (GoukeiSeqNo == CommonMotions.cnvInt(dgv[(int)DispColumn.GoukeiSeqNo, e.RowIndex].Value) && CommonMotions.cnvInt(dgv[e.ColumnIndex, e.RowIndex].Value) != 0)
-                        {
-                            // ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰‚ð”²‚¯�o‚µ‚½’¼Œã‚ÉŽÀ�s
-                            this.BeginInvoke((MethodInvoker)delegate
-                            {
-                                int MakeIndex = 0;
-                                MakeNewRow(CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value), "", 0,
-                                            CommonMotions.cnvInt(dgv[(int)DispColumn.No, e.RowIndex].Value), ref MakeIndex, -1, e.RowIndex + 1);
-                                dgv.Rows[MakeIndex].Cells[(int)DispColumn.CompanyDispOrder].Value = CommonMotions.cnvInt(dgv[(int)DispColumn.CompanyDispOrder, e.RowIndex].Value);
-                                dgv.Rows[MakeIndex].Cells[m_GoukeiCode_Column + 1].ToolTipText = CommonMotions.cnvString(dgv[m_GoukeiCode_Column + 1, e.RowIndex].ToolTipText);
-                                ResetNo();
-                            });
-                        }
-                    }
-                }
+                // �V‹K’Ç‰Á ƒZƒ‹‚Ì“à—e•Ï�X‚Å•s–¾�s‚ð�ì�¬‚µ‚È‚¢—l‚É�C�³�i‹ÆŽÒ‚Ì•s–¾�s’Ç‰Á‚Í‹ÆŽÒ’Ç‰Áƒ{ƒ^ƒ“‚Å•s–¾�s‚ð‘�‚â‚·�j
+                //if (dgvCompany.Visible == true && btnAddCompany.Enabled == true &&
+                //    (e.ColumnIndex >= (int)DispColumn.SomuSeikyu && e.ColumnIndex < (int)DispColumn.KojiSeikyu))
+                //{
+                //    int GoukeiSeqNo;
+                //    string cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[Code_Column].Value) == CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value) && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
+                //                                                    .Max(x => (string)x.Cells[(int)DispColumn.GoukeiSeqNo].Value.ToString());
+                //    if (cell != null)
+                //    {
+                //        GoukeiSeqNo = CommonMotions.cnvInt(cell);
+                //        if (GoukeiSeqNo == CommonMotions.cnvInt(dgv[(int)DispColumn.GoukeiSeqNo, e.RowIndex].Value) && CommonMotions.cnvInt(dgv[e.ColumnIndex, e.RowIndex].Value) != 0)
+                //        {
+                //            // ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰‚ð”²‚¯�o‚µ‚½’¼Œã‚ÉŽÀ�s
+                //            this.BeginInvoke((MethodInvoker)delegate
+                //            {
+                //                int MakeIndex = 0;
+                //                MakeNewRow(CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value), "", 0,
+                //                            CommonMotions.cnvInt(dgv[(int)DispColumn.No, e.RowIndex].Value), ref MakeIndex, -1, e.RowIndex + 1);
+                //                dgv.Rows[MakeIndex].Cells[(int)DispColumn.CompanyDispOrder].Value = CommonMotions.cnvInt(dgv[(int)DispColumn.CompanyDispOrder, e.RowIndex].Value);
+                //                dgv.Rows[MakeIndex].Cells[m_GoukeiCode_Column + 1].ToolTipText = CommonMotions.cnvString(dgv[m_GoukeiCode_Column + 1, e.RowIndex].ToolTipText);
+                //                ResetNo();
+                //            });
+                //        }
+                //    }
+                //}
 
             }
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 106)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 107)
@@ -584,9 +584,9 @@
                     if (dgvCompany.Visible == true)  // ‹ÆŽÒ
                     {
                         // Šù‚É•\Ž¦‚³‚ê‚Ä‚¢‚é‹ÆŽÒ‚Í’Ç‰Á‚µ‚È‚¢�@�¨�@“¯ˆê‹ÆŽÒ‚ð’Ç‰Á‚Å‚«‚é‚æ‚¤‚É•Ï�X
-                        //DataGridViewRow[] rows = dgv.Rows.Cast<DataGridViewRow>()
-                        //                                            .Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == selRec.CompanyCode
-                        //                                                     && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1).ToArray();
+                        DataGridViewRow[] rows = dgv.Rows.Cast<DataGridViewRow>()
+                                                                    .Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == selRec.CompanyCode
+                                                                             && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1).ToArray();
                         //if (rows.Count() > 1)
                         //{
                         //    return;
@@ -606,6 +606,12 @@
 
                         MakeIndex = SearchRowIndex(selRec.DisplayOrder);
 
+                        // Šù‚É•\Ž¦‚³‚ê‚Ä‚¢‚é‹ÆŽÒ‚Í�A�¬Œv�s‚Ì�ã‚É’Ç‰Á‚·‚é
+                        if (rows.Count() > 1)
+                        {
+                            MakeIndex -= (int)GoukeiRows.�‡Œv;
+                        }
+
                         // ƒf�[ƒ^“ü—Í�s
                         MakeNewRow(selRec.CompanyCode, selRec.CompanyName, 0, No, ref MakeIndex, -1, MakeIndex);
                         dgv.Rows[MakeIndex].Cells[(int)DispColumn.CompanyDispOrder].Value = selRec.DisplayOrder;
@@ -612,23 +618,24 @@
                         MakeIndex++;
                         MakeGoukei = true;
 
+                        // �‡Œv�s�ì�¬
+                        if (rows.Count() < 1)
+                        {
+                            if (MakeGoukei == true)
+                            {
+                                // �‡Œv�s’Ç‰Á
+                                MakeGoukeiGyo(dgv, selRec.CompanyCode, selRec.DisplayOrder, MakeIndex);
+
+                            }
+                        }
+
+                        ResetNo();
+                        m_bChengeAns = true;
                     }
                     else if (dgvProject.Visible == true)  // Œ»�ê
                     {
                         // Œ»�ê‚Å‹ÆŽÒ’Ç‰Á‚Í‚È‚¢
                     }
-
-                    // �‡Œv�s�ì�¬
-                    if (MakeGoukei == true)
-                    {
-                        // �‡Œv�s’Ç‰Á
-                        MakeGoukeiGyo(dgv, selRec.CompanyCode, selRec.DisplayOrder, MakeIndex);
-
-                    }
-
-                    ResetNo();
-
-                    m_bChengeAns = true;
                 }
 
             }
