toshortstring -> tostring
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -106,8 +106,8 @@ namespace FCM0000
|
||||
//제목줄을 처리한다. 181029
|
||||
List<string> cols = new List<string>();
|
||||
|
||||
string sDate = sd.Value.ToShortDateString();
|
||||
string eDate = ed.Value.ToShortDateString();
|
||||
string sDate = sd.Value.ToString("yyyy-MM-dd");
|
||||
string eDate = ed.Value.ToString("yyyy-MM-dd");
|
||||
|
||||
for (int c = MinCol; c <= MaxCol; c++)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace FCM0000.Inventory
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
this.tbDate.Text = DateTime.Now.ToShortDateString();
|
||||
this.tbDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
this.reportViewer1.PageCountMode = Microsoft.Reporting.WinForms.PageCountMode.Actual;
|
||||
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
|
||||
refreshData();
|
||||
|
||||
@@ -112,8 +112,8 @@ namespace FCM0000
|
||||
}
|
||||
cmbUser.SelectedIndex = 0;//전체
|
||||
|
||||
dtED.Text = DateTime.Now.ToShortDateString();
|
||||
dtSD.Text = DateTime.Now.AddYears(-1).ToShortDateString();
|
||||
dtED.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
dtSD.Text = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd");
|
||||
RefreshData();
|
||||
|
||||
}
|
||||
@@ -159,7 +159,7 @@ namespace FCM0000
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["uid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["pdate"] = DateTime.Now.ToShortDateString();
|
||||
e.Row["pdate"] = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
e.Row["cr_qty"] = 0;
|
||||
e.Row["cr_amt"] = 0;
|
||||
e.Row["dr_qty"] = 0;
|
||||
@@ -436,7 +436,7 @@ namespace FCM0000
|
||||
}
|
||||
|
||||
var newdr = this.dSInventory.vInventory.NewvInventoryRow();
|
||||
newdr.pdate = DateTime.Now.ToShortDateString();
|
||||
newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.invtype = "입고";
|
||||
newdr.item = dr.item;
|
||||
//newdr.ItemArray = dr.ItemArray;
|
||||
@@ -473,7 +473,7 @@ namespace FCM0000
|
||||
}
|
||||
|
||||
var newdr = this.dSInventory.vInventory.NewvInventoryRow();
|
||||
newdr.pdate = DateTime.Now.ToShortDateString();
|
||||
newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.invtype = "출고";
|
||||
newdr.item = dr.item;
|
||||
//newdr.ItemArray = dr.ItemArray;
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace FCM0000
|
||||
|
||||
updateplace();
|
||||
|
||||
dtSD.Text = DateTime.Now.ToShortDateString();
|
||||
dtSD.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
RefreshData();
|
||||
|
||||
}
|
||||
@@ -233,7 +233,7 @@ namespace FCM0000
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.uid = FCOMMON.info.Login.no;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.pdate = DateTime.Now.ToShortDateString();
|
||||
newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.cr_qty = 0;
|
||||
newdr.cr_amt = 0;
|
||||
newdr.dr_qty = 0;
|
||||
@@ -278,7 +278,7 @@ namespace FCM0000
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.uid = FCOMMON.info.Login.no;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.pdate = DateTime.Now.ToShortDateString();
|
||||
newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.cr_qty = 0;
|
||||
newdr.cr_amt = 0;
|
||||
newdr.dr_qty = 0;
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace FCM0000.Inventory
|
||||
FCOMMON.Util.MsgE("품목을 먼저 선택하세요");
|
||||
return;
|
||||
}
|
||||
this.ta.FillByItemIdx(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, DateTime.Now.ToShortDateString(), itmidx);
|
||||
this.ta.FillByItemIdx(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, DateTime.Now.ToString("yyyy-MM-dd"), itmidx);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -75,10 +75,10 @@ namespace FCM0000
|
||||
|
||||
//마지막 자료를 가져온날을 찾는다.
|
||||
var dateList = FCOMMON.DBM.getDateList("InventoryUser", "uid='" + FCOMMON.info.Login.no + "'");
|
||||
dtED.Text = DateTime.Now.ToShortDateString();
|
||||
dtED.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
|
||||
if (dateList.Count > 0) dtSD.Text = dateList[dateList.Count - 1];
|
||||
else dtSD.Text = DateTime.Now.AddDays(-7).ToShortDateString();
|
||||
else dtSD.Text = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd");
|
||||
|
||||
btSearch.PerformClick();
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace FCM0000
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["uid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["pdate"] = DateTime.Now.ToShortDateString();
|
||||
e.Row["pdate"] = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
e.Row["dr_qty"] = 0;
|
||||
e.Row["dr_amt"] = 0;
|
||||
e.Row["invtype"] = "I1";
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace FCM0000
|
||||
|
||||
|
||||
///입력된 데이터를 적용한다.
|
||||
if (dr.pdate == "") dr.pdate = DateTime.Now.ToShortDateString();
|
||||
if (dr.pdate == "") dr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
dtPdate.Value = DateTime.Parse(dr.pdate);
|
||||
dtPdate.Value = DateTime.Parse(dr.pdate);
|
||||
// cmbRequest.Text = dr.userName;
|
||||
@@ -265,7 +265,7 @@ namespace FCM0000
|
||||
if (tbPumIDX.Text == "" || tbPumIDX.Text == "-1") dr.SetitemNull();
|
||||
else dr.item = int.Parse(tbPumIDX.Text);
|
||||
dr.sid = tbSID.Text.Trim();
|
||||
dr.pdate = this.dtPdate.Value.ToShortDateString();
|
||||
dr.pdate = this.dtPdate.Value.ToString("yyyy-MM-dd");
|
||||
dr.gcode = FCOMMON.info.Login.gcode;
|
||||
if (cmbRequest.Text.IndexOf("]") != -1)
|
||||
{
|
||||
|
||||
@@ -152,8 +152,8 @@ namespace FCM0000
|
||||
|
||||
this.dr.fromlist = tbFrom.Text.Trim();
|
||||
this.dr.enable = chkEnb.Checked;
|
||||
this.dr.sdate = dtSd.Value.ToShortDateString();
|
||||
this.dr.edate = dtEd.Value.ToShortDateString();
|
||||
this.dr.sdate = dtSd.Value.ToString("yyyy-MM-dd");
|
||||
this.dr.edate = dtEd.Value.ToString("yyyy-MM-dd");
|
||||
this.dr.stime = string.Format("{0}:{1}",cmbHour.Text,cmbMinute.Text);
|
||||
this.dr.tolist = tbTo.Text.Trim();
|
||||
this.dr.bcc = tbBcc.Text.Trim();
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace FCM0000
|
||||
var newdr = this.dsMSSQL.HolidayLIst.NewHolidayLIstRow();
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.pdate = dayvalue.ToShortDateString();// textBox1.Text.Trim() + "-" + i.ToString("00");
|
||||
newdr.pdate = dayvalue.ToString("yyyy-MM-dd");// textBox1.Text.Trim() + "-" + i.ToString("00");
|
||||
if (dayvalue.DayOfWeek == DayOfWeek.Saturday )
|
||||
{
|
||||
newdr.free = true;
|
||||
|
||||
Reference in New Issue
Block a user