item, project 를 별도 분리
lov 생성 personalInventoryToolStripMenuItem_Click 기능 추가
This commit is contained in:
@@ -19,6 +19,50 @@ namespace FCOMMON
|
||||
{
|
||||
public static partial class Util
|
||||
{
|
||||
public static Boolean MakeDateString(string src, out string data)
|
||||
{
|
||||
data = src;
|
||||
string dtStr = string.Empty;
|
||||
DateTime dt;
|
||||
int iv;
|
||||
if (int.TryParse(src, out iv))
|
||||
{
|
||||
if (iv <= 31)
|
||||
{
|
||||
src = DateTime.Now.ToString("yyyy-MM-") + iv.ToString("00");
|
||||
}
|
||||
else
|
||||
{
|
||||
//숫자이긴하나 32보다크면 오류로 한다.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
src = src.Replace("/", "-");
|
||||
if (src.Length < 4)
|
||||
{
|
||||
src = src.PadLeft(4, '0');
|
||||
}
|
||||
if(src.Length==4)
|
||||
{
|
||||
src = DateTime.Now.ToString("yyyy") + "-" + src.Substring(0, 2) + "-" + src.Substring(2);
|
||||
}
|
||||
if(src.Length == 6)
|
||||
{
|
||||
src = "20" + src.Substring(0, 2) + "-" + src.Substring(2, 2) + "-" + src.Substring(4, 2);
|
||||
}
|
||||
if(src.Length == 5 && src.Substring(2,1) == "-")
|
||||
{
|
||||
src = DateTime.Now.ToString("yyyy-") + src;
|
||||
}
|
||||
|
||||
if (DateTime.TryParse(src, out dt))
|
||||
{
|
||||
data = dt.ToShortDateString();
|
||||
return true;
|
||||
}
|
||||
else data = src;
|
||||
return false;
|
||||
}
|
||||
public static void SetFormStatus(ref System.Windows.Forms.Form f, string formid, Boolean read)
|
||||
{
|
||||
var fi = new System.IO.FileInfo(info.Path + "formSetting\\" + formid + ".xml");
|
||||
|
||||
Reference in New Issue
Block a user