示例#1
0
        private static string InitPanelNo(DateTime dtime)
        {
            string panelNo;

            lock (foo) {
                // panelNo = LableCode.GetLastPanelNo(string.Format("{0}", dtime.ToString(clsSetting.LABEL_CODE_DATE_FORMAT)));
                panelNo = LableCode.GetLastPanelNo($"{dtime.ToString(clsSetting.LABEL_CODE_DATE_FORMAT)}");
                panelNo = string.IsNullOrEmpty(panelNo)
                    ? string.Format("{0}{1}", dtime.ToString(clsSetting.PANEL_PATTERN), "0000")
                    : (decimal.Parse(panelNo) + 1).ToString();
            }
            return(panelNo);
        }