..
This commit is contained in:
@@ -867,19 +867,23 @@ namespace FPJ0000
|
||||
private void toolStripButton19_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
var dlg = util.MsgQ("스케쥴을 추가 하시겠습니까? 스케쥴 추가는 각 관리자에 협의 후 하시기 바랍니다");
|
||||
|
||||
|
||||
int maxno = 0;
|
||||
var maxdata = dsPRJ.EETGW_ProjectsSchedule.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.project == this.projectindex);
|
||||
if (maxdata.Any() == true) maxno = maxdata.Max(t => t.no);
|
||||
|
||||
var currentno = int.Parse(comboBox1.Text);
|
||||
var newno = maxno + 1;
|
||||
|
||||
var dlg = util.MsgQ($"스케쥴을 추가 하시겠습니까? 스케쥴 추가는 각 관리자에 협의 후 하시기 바랍니다\n소스:{currentno},신규번호:{newno}");
|
||||
if (dlg != DialogResult.Yes) return;
|
||||
|
||||
int maxno = 1;
|
||||
var maxdata = dsPRJ.EETGW_ProjectsSchedule.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.project == this.projectindex);
|
||||
if (maxdata.Any() == false) maxno = maxdata.Max(t => t.no);
|
||||
|
||||
var newno = maxno + 1;
|
||||
this.comboBox1.Items.Add($"{newno}");
|
||||
|
||||
//기존목록을 복사함
|
||||
var seq = 1;
|
||||
foreach (dsPRJ.EETGW_ProjectsScheduleRow dr in this.dsPRJ.EETGW_ProjectsSchedule.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.project == this.projectindex && t.no == maxno).OrderBy(t => t.seq))
|
||||
foreach (dsPRJ.EETGW_ProjectsScheduleRow dr in this.dsPRJ.EETGW_ProjectsSchedule.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.project == this.projectindex && t.no == currentno).OrderBy(t => t.seq))
|
||||
{
|
||||
var newdr = this.dsPRJ.EETGW_ProjectsSchedule.NewEETGW_ProjectsScheduleRow();
|
||||
newdr.no = newno;
|
||||
@@ -895,6 +899,7 @@ namespace FPJ0000
|
||||
newdr.ewa = dr.ewa;
|
||||
newdr.memo = dr.memo;
|
||||
newdr.progress = dr.progress;
|
||||
newdr.uidname = dr.uidname;
|
||||
newdr.uid = dr.uid;
|
||||
newdr.appoval = 0;
|
||||
newdr.cate = dr.cate;
|
||||
|
||||
Reference in New Issue
Block a user