コード例 #1
0
ファイル: sefaresh.cs プロジェクト: cxdcxd/touchgroup
        public sefaresh(string table, string fish, FarsiLibrary.Utils.PersianDate time, ArrayList food_list)
        {
            table_fishcode = fish;
            table_number = table;
            this.time = time;
            list_codecstring = food_list;
            list_sefareshshow = convert_codeclist_to_sefareshlist(this);

            get_total_cost();
        }
コード例 #2
0
ファイル: sefaresh.cs プロジェクト: cxdcxd/touchgroup
        public sefaresh(string table, string fish, FarsiLibrary.Utils.PersianDate time, List<sefaresh_show> sefaresh_show_list, bool a)
        {
            table_fishcode = fish;
            table_number = table;
            this.time = time;

            list_codecstring = null;
            list_sefareshshow = sefaresh_show_list;

            get_total_cost();
        }
コード例 #3
0
ファイル: main_class.cs プロジェクト: bahmany/tracking
    public string Convert_to_Midaly(string ShamsiDate)
    {
        string str = "";
        string year = "";
        string month = "";
        string day = "";

        DateTime dtt;

        FarsiLibrary.Utils.PersianDate pd = new FarsiLibrary.Utils.PersianDate(ShamsiDate);
        dtt = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(pd);

        year = dtt.Year.ToString();
        month = dtt.Month.ToString();
        day = dtt.Day.ToString();
        if (month.Length == 1) { month = "0" + month; }
        if (day.Length == 1) { day = "0" + day; }
        DateTime dt = Convert.ToDateTime(year + "/" + month + "/" + day);

        year = dt.Year.ToString();
        month = dt.Month.ToString();
        day = dt.Day.ToString();

        if (month.Length == 1) { month = "0" + month; }
        if (day.Length == 1) { day = "0" + day; }

        str = year + "/" + month + "/" + day + " ";

        return str;
    }
コード例 #4
0
ファイル: main_class.cs プロジェクト: bahmany/tracking
    public string Convert_to_Midaly(string ShamsiDate, string time)
    {
        string str = "";
        string year = "";
        string month = "";
        string day = "";
        string hour = "";
        string min = "";
        string sec = "";
        DateTime dtt;

        FarsiLibrary.Utils.PersianDate pd = new FarsiLibrary.Utils.PersianDate(ShamsiDate);
        dtt = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(pd);

        year = dtt.Year.ToString();
        month = dtt.Month.ToString();
        day = dtt.Day.ToString();
        if (month.Length == 1) { month = "0" + month; }
        if (day.Length == 1) { day = "0" + day; }
        DateTime dt = Convert.ToDateTime(year + "/" + month + "/" + day + " " + time);

        year = dt.Year.ToString();
        month = dt.Month.ToString();
        day = dt.Day.ToString();
        hour = dt.Hour.ToString();
        min = dt.Minute.ToString();
        sec = dt.Second.ToString();

        if (month.Length == 1) { month = "0" + month; }
        if (day.Length == 1) { day = "0" + day; }
        if (hour.Length == 1) { hour = "0" + hour; }
        if (min.Length == 1) { min = "0" + min; }
        if (sec.Length == 1) { sec = "0" + sec; }

        str = year + "/" + month + "/" + day + " " + hour + ":" + min + ":" + sec;

        return str;
    }