개정판 75b21c63
issue #000
테스트 로직 삭제
Change-Id: Ic5488c8f779036bbfec30c95d483054efd1bdee0
ID2.Manager/ID2.Manager.Dapper/Repository/DocumentRepository.cs | ||
---|---|---|
301 | 301 |
if (parameters.Count > 0) |
302 | 302 |
{ |
303 | 303 |
sbSet.Append(" ,DocID=@DocID "); |
304 |
parameters.Add("DocID", "sdfsdf");
|
|
304 |
parameters.Add("DocID", doc.DocID);
|
|
305 | 305 |
|
306 | 306 |
sbSet.Append(" ,ModifiedUser=@ModifiedUser "); |
307 | 307 |
parameters.Add("ModifiedUser", userId); |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
655 | 655 |
|
656 | 656 |
try |
657 | 657 |
{ |
658 |
if (doc.ID2StartDate != null)
|
|
658 |
if (doc.ID2StartDate == null)
|
|
659 | 659 |
{ |
660 | 660 |
var returnDoc = new DocumentController().SetDocumentDataField(new Documents() |
661 | 661 |
{ |
... | ... | |
674 | 674 |
} |
675 | 675 |
catch (Exception ex) |
676 | 676 |
{ |
677 |
if (e.Row.DataBoundItem is Documents doc) |
|
678 |
{ |
|
679 |
try |
|
680 |
{ |
|
681 |
if (doc.ID2StartDate == null) |
|
682 |
{ |
|
683 |
var returnDoc = new DocumentController().SetDocumentDataField(new Documents() |
|
684 |
{ |
|
685 |
DocID = doc.DocID, |
|
686 |
ID2StartDate = DateTime.Now |
|
687 |
}, informations.ActiveUser.ID); |
|
688 |
|
|
689 |
if (returnDoc != null) |
|
690 |
{ |
|
691 |
doc.ID2StartDate = returnDoc.ID2StartDate; |
|
692 |
} |
|
693 |
} |
|
694 |
} |
|
695 |
catch { } |
|
696 |
} |
|
677 | 697 |
RadMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, RadMessageIcon.Error); |
678 | 698 |
} |
679 | 699 |
break; |
내보내기 Unified diff