Exemple #1
0
        private void btnStage3_Click(object sender, EventArgs e)
        {
            DateTime datetime = DateTime.Now;

            tsie = new T_SugorakuInport_Entity();
            tsie.InportEndTime = datetime.ToString();
            tsie.InportEndKBN  = "1";
            psks0108ibl        = new PSKS0108I_BL();

            if (psks0108ibl.T_SugorakuInport_Update(tsie))
            {
                lblStage2.BackColor = Color.FromArgb(255, 242, 204);
                txtEndTime.Text     = datetime.ToString("HH:mm");
            }

            //***Bug51 Need Button Enable/Disable on Step3 click,not only btnStage3Save_Click
            buttonEnable_Check();
        }
Exemple #2
0
        //end

        private bool InsertData()
        {
            DateTime datetime = DateTime.Now;

            psks0108ibl = new PSKS0108I_BL();
            L_Log_Entity LogData = new L_Log_Entity();

            LogData.OperateDate    = datetime.ToString("yyyy/MM/dd");
            LogData.OperateTime    = datetime.ToString("HH:mm");
            LogData.InsertOperator = loginInfo.OperatorCode;
            LogData.Program        = "PSKS0108I";
            LogData.PC             = loginInfo.PcName;

            #region copy file

            //String sourcePath = bd.path_108i("S_path", @"\\192.168.0.14\ablesoft\CONPHAS-GENERAL\DATA");
            //String targetPath = bd.path_108i("T_Path", @"\\192.168.0.5\Dropbox (Capital Group)\Capital backup\systemdata\inventory\ShopData\108I");
            // string fileName = "FreeDAT.mdb";
            //string s = System.IO.Path.Combine(sourcePath, fileName);
            //string destFile = System.IO.Path.Combine(targetPath, fileName);

            string shopFlag = "0";

            //if(File.Exists(s))
            //{
            //    System.IO.File.Copy(s, destFile, true);
            //    shopFlag = "1";
            //}

            #endregion

            bool result = psks0108ibl.T_RONRI_ZAIKO_Insert(LogData, datetime.ToString(), shopFlag);
            //bool result = true;
            //if (File.Exists(destFile))
            //    File.Delete(destFile);

            return(result);
        }//更新処理1
Exemple #3
0
 private void frmPSKS0108I_Load(object sender, EventArgs e)
 {
     psks0108ibl = new PSKS0108I_BL();
     buttonEnable_Check();
 }