Beispiel #1
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            dmh.MoveDocument();
            MessageBox.Show("资料导入完成");
        }
Beispiel #2
0
        private void bt_moduleMove_Click(object sender, EventArgs e)
        {
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            dmh.AutoSaveAllDocuments();
            MessageBox.Show("自动保存完成");
        }
Beispiel #3
0
        private void toolStripButton6_Click(object sender, EventArgs e)
        {
            //龄期迁移
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            dmh.MoveStadiumData();
            MessageBox.Show("龄期迁移完成");
        }
Beispiel #4
0
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            //审批修改迁移
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            dmh.MoveModifyChange();
            MessageBox.Show("审批修改迁移完成");
        }
Beispiel #5
0
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            //不合格报表迁移
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            dmh.MoveInvalidDocument();
            MessageBox.Show("不合格报表迁移完成");
        }
Beispiel #6
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            //修改日志迁移
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            dmh.MoveEditLog();
            MessageBox.Show("修改日志迁移完成");
        }
Beispiel #7
0
        private void bt_save_Click(object sender, EventArgs e)
        {
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            if (textBox1.Text != "")
            {
                dmh.MoveModuleByID(textBox1.Text);
                textBox1.Text = "";
                MessageBox.Show("一个模板导入完成,请到模板库中查看");
            }
        }
Beispiel #8
0
        private void bt_save_Click(object sender, EventArgs e)
        {
            DataMoveHelperClient dmh = new DataMoveHelperClient();

            if (textBox1.Text != "")
            {
                dmh.MoveDocumentByModuleID(textBox1.Text);
                textBox1.Text = "";
                MessageBox.Show("该模板资料导入完成");
            }
        }
Beispiel #9
0
 private void btn_sent_Click(object sender, EventArgs e)
 {
     try
     {
         string phones, context;
         phones  = txtPhones.Text.Trim();
         context = txtContent.Text.Trim();
         if (!string.IsNullOrEmpty(phones) && !string.IsNullOrEmpty(context))
         {
             DataMoveHelperClient dmhc = new DataMoveHelperClient();
             string strResult          = dmhc.TestSMSSend(phones, context);
             MessageBox.Show(strResult);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("error:" + ex.ToString());
     }
 }
Beispiel #10
0
        private bool UploadTestData(int currentNumber, int totalNumber, Guid documentID, Guid stadiumID, Guid moduleID, string wtbh, string testRoomCode, string machineCode, string realTimeData)
        {
            Boolean flag = false;
            //上传更新包
            DataMoveHelperClient dmhc = new DataMoveHelperClient();

            String testDataJson = configList[moduleID.ToString().ToUpper() + "_" + currentNumber.ToString()];
            String ldzdl        = tb_ldzdl.Text.Trim() == "" ? "null" : tb_ldzdl.Text.Trim();
            String phhz         = tb_phhz.Text.Trim() == "" ? "null" : tb_phhz.Text.Trim();
            String dhbj         = tb_dhbj.Text.Trim() == "" ? "null" : tb_dhbj.Text.Trim();
            String qfl          = tb_qfl.Text.Trim() == "" ? "null" : tb_qfl.Text.Trim();
            String testData     = "";

            flag = true;
            for (int i = 0; i < 1; i++)
            {
                if (moduleID == new Guid("68F05EBC-5D34-49C5-9B57-49B688DF24F7"))
                {//钢筋试验报告
                    #region realTimeData
                    realTimeData = "[{\"Time\":\"2014-07-04T11:29:37.8100324+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:37.821033+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:37.9290392+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:37.9340395+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.0550464+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.0630468+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.3750647+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.3830652+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.5010719+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.5060722+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.8160899+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.8230903+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.9420971+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:38.9520977+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-04T11:29:39.0681043+08:00\",\"Value\":0.0}]";
                    #endregion
                    testData = testDataJson.Replace("{ldzdl}", (float.Parse(ldzdl) + i + currentNumber).ToString()).Replace("{qfl}", (float.Parse(qfl) + i + currentNumber).ToString()).Replace("{dhbj}", (float.Parse(dhbj) + i + currentNumber).ToString());
                }
                else if (moduleID == new Guid("05D0D71B-DEF3-42EE-A16A-79B34DE97E9B"))
                {
                    //混凝土检查试件抗压强度试验报告
                    #region realTimeData
                    realTimeData = "[{\"Time\":\"2014-07-11T15:55:16.2764039+08:00\",\"Value\":5.39},{\"Time\":\"2014-07-11T15:55:16.2764039+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:16.4792043+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:16.4792043+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:16.6820046+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:16.6820046+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:16.884805+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:16.900405+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.0876053+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.0876053+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.2904057+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.2904057+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.493206+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.493206+08:00\",\"Value\":0.0},{\"Time\":\"2014-07-11T15:55:17.6960064+08:00\",\"Value\":0.0}]";
                    #endregion
                    testData = testDataJson.Replace("{phhz}", (float.Parse(phhz) + i + currentNumber).ToString());
                }

                flag = flag & dmhc.UploadTestData(documentID, moduleID, stadiumID, wtbh, testRoomCode,
                                                  currentNumber, "彭震宇",
                                                  testData, BizCommon.JZCommonHelper.GZipCompressString(realTimeData), totalNumber, machineCode);// Yqun.Common.ContextCache.ApplicationContext.Current.UserName
            }
            return(flag);
        }
Beispiel #11
0
 private void ButtonDeviceConvert_Click(object sender, EventArgs e)
 {
     DataMoveHelperClient.ConvertDevice();
 }