toshortstring -> tostring
This commit is contained in:
@@ -54,7 +54,7 @@ namespace FEQ0000
|
||||
if (e.KeyCode != Keys.Enter) return;
|
||||
var tb = sender as ToolStripTextBox;
|
||||
var input = tb.Text.Trim();
|
||||
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
|
||||
if (input == "") tb.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
else
|
||||
{
|
||||
string dt = string.Empty;
|
||||
@@ -90,7 +90,7 @@ namespace FEQ0000
|
||||
void Purchase_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
e.Row["pdate"] = DateTime.Now.ToShortDateString();
|
||||
e.Row["pdate"] = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["pumunit"] = "EA";
|
||||
@@ -109,17 +109,17 @@ namespace FEQ0000
|
||||
this.cmDate.SelectedIndex = 0;
|
||||
this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK;
|
||||
this.cmbSort.SelectedIndex = 0;
|
||||
this.dtSD.Text = DateTime.Now.AddDays(-30).ToShortDateString();
|
||||
this.dtED.Text = DateTime.Now.AddDays(10).ToShortDateString();
|
||||
this.dtSD.Text = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");
|
||||
this.dtED.Text = DateTime.Now.AddDays(10).ToString("yyyy-MM-dd");
|
||||
|
||||
var gcode = FCOMMON.info.Login.gcode;
|
||||
var sdatestr = FCOMMON.DBM.ExecuteScalar($"select min(pdate) from EETGW_PurchaseCR with(nolock) where gcode='{gcode}' and [state] in ('---','PO','PR')");
|
||||
if (DateTime.TryParse(sdatestr, out DateTime sdate))
|
||||
dtSD.Text = sdate.ToShortDateString();
|
||||
dtSD.Text = sdate.ToString("yyyy-MM-dd");
|
||||
|
||||
//var edatestr = FCOMMON.DBM.ExecuteScalar($"select max(pdate) from EETGW_PurchaseCR where gcode='{gcode}' and [state] in ('---','PO','PR')");
|
||||
//if (DateTime.TryParse(edatestr, out DateTime edate))
|
||||
// dtED.Text = edate.ToShortDateString();
|
||||
// dtED.Text = edate.ToString("yyyy-MM-dd");
|
||||
|
||||
//state list
|
||||
var stList = FCOMMON.DBM.getCodeList("04");
|
||||
@@ -775,8 +775,8 @@ namespace FEQ0000
|
||||
private void 내가등록한자료ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
cmDate.SelectedIndex = 0;
|
||||
dtSD.Text = DateTime.Now.AddMonths(-1).ToShortDateString();
|
||||
dtED.Text = DateTime.Now.ToShortDateString();
|
||||
dtSD.Text = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd");
|
||||
dtED.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
cmbState.SelectedIndex = 0;
|
||||
tbRequest.Text = FCOMMON.info.Login.nameK;
|
||||
refreshData();
|
||||
@@ -785,8 +785,8 @@ namespace FEQ0000
|
||||
private void 금일입고품목ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
cmDate.SelectedIndex = 1; //입고일
|
||||
dtSD.Text = DateTime.Now.ToShortDateString(); //당일
|
||||
dtED.Text = DateTime.Now.ToShortDateString();
|
||||
dtSD.Text = DateTime.Now.ToString("yyyy-MM-dd"); //당일
|
||||
dtED.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
tbRequest.Text = string.Empty;
|
||||
refreshData();
|
||||
}
|
||||
@@ -794,7 +794,7 @@ namespace FEQ0000
|
||||
private void 이번달자료ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
dtSD.Text = DateTime.Now.ToString("yyyy-MM") + "-01";
|
||||
dtED.Text = DateTime.Now.ToShortDateString();
|
||||
dtED.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
tbRequest.Text = string.Empty;
|
||||
refreshData();
|
||||
}
|
||||
@@ -967,7 +967,7 @@ namespace FEQ0000
|
||||
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
|
||||
bcclist = ChangeMailAddress(bcclist);
|
||||
|
||||
var datestr = DateTime.Now.ToShortDateString();
|
||||
var datestr = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
|
||||
else datestr = dtSD.Text + "~" + dtED.Text;
|
||||
form_subject = form_subject.Replace("{DATE}", datestr);
|
||||
@@ -1019,7 +1019,7 @@ namespace FEQ0000
|
||||
var newdr = this.dsPurchase.EETGW_PurchaseCR.NewEETGW_PurchaseCRRow();
|
||||
FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr);
|
||||
newdr.orderno = string.Empty; //CR값 복사 안하게 210823
|
||||
newdr.pdate = DateTime.Now.ToShortDateString();
|
||||
newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.bigo = string.Empty;
|
||||
@@ -1224,11 +1224,11 @@ namespace FEQ0000
|
||||
var f = new FCOMMON.fSelectDay(dt);
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tb.Text = f.dtPick.SelectionStart.ToShortDateString();
|
||||
tb.Text = f.dtPick.SelectionStart.ToString("yyyy-MM-dd");
|
||||
|
||||
var sd = DateTime.Parse(this.dtSD.Text);
|
||||
var ed = DateTime.Parse(this.dtED.Text);
|
||||
if (ed < sd) this.dtED.Text = sd.ToShortDateString();
|
||||
if (ed < sd) this.dtED.Text = sd.ToString("yyyy-MM-dd");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user