업무일지 / 프로젝트목록 컨텍스트메뉴에 복사/편집/삭제 항목 추가
This commit is contained in:
@@ -218,7 +218,7 @@ namespace FPJ0000
|
||||
this.fpSpread1.ResumeLayout();
|
||||
}
|
||||
|
||||
void saveData(Boolean pmt)
|
||||
void funcSave(Boolean pmt)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
@@ -243,7 +243,7 @@ namespace FPJ0000
|
||||
|
||||
private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
saveData(true);
|
||||
funcSave(true);
|
||||
|
||||
}
|
||||
void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
@@ -324,6 +324,10 @@ namespace FPJ0000
|
||||
}
|
||||
|
||||
private void makeRepeatToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcCopy();
|
||||
}
|
||||
void funcCopy()
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
@@ -333,9 +337,9 @@ namespace FPJ0000
|
||||
{
|
||||
var ta = new dsPRJTableAdapters.QueriesTableAdapter();
|
||||
int? newidx = -1;
|
||||
var retval = ta.CopyProjectData(dr.idx, FCOMMON.info.Login.no,ref newidx);
|
||||
var retval = ta.CopyProjectData(dr.idx, FCOMMON.info.Login.no, ref newidx);
|
||||
refreshData();
|
||||
if(newidx != null)
|
||||
if (newidx != null)
|
||||
{
|
||||
var newdr = this.dsMSSQL.Projects.Where(t => t.idx == newidx).FirstOrDefault();
|
||||
var f = new fProjectData(newdr);
|
||||
@@ -344,7 +348,7 @@ namespace FPJ0000
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.project));
|
||||
if (curLevel < 5)
|
||||
{
|
||||
saveData(false); //자동저장
|
||||
funcSave(false); //자동저장
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -402,6 +406,10 @@ namespace FPJ0000
|
||||
}
|
||||
|
||||
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcDelete();
|
||||
}
|
||||
void funcDelete()
|
||||
{
|
||||
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?");
|
||||
if (dlg == System.Windows.Forms.DialogResult.Yes)
|
||||
@@ -412,11 +420,10 @@ namespace FPJ0000
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.project));
|
||||
if (curLevel < 5)
|
||||
{
|
||||
saveData(false); //자동저장
|
||||
funcSave(false); //자동저장
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void 엑셀파일로저장ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveFileDialog sd = new SaveFileDialog();
|
||||
@@ -500,9 +507,9 @@ namespace FPJ0000
|
||||
|
||||
private void btEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataEdit();
|
||||
funcEdit();
|
||||
}
|
||||
void DataEdit()
|
||||
void funcEdit()
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
@@ -513,14 +520,14 @@ namespace FPJ0000
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.project));
|
||||
if (curLevel < 5)
|
||||
{
|
||||
saveData(false); //자동저장
|
||||
funcSave(false); //자동저장
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void 편집ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataEdit();
|
||||
funcEdit();
|
||||
}
|
||||
|
||||
private void tbRequest_KeyDown(object sender, KeyEventArgs e)
|
||||
@@ -579,5 +586,10 @@ namespace FPJ0000
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void btCopy_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcCopy();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user