private void frmModelLogin_Load(object sender, EventArgs e)
        {
            ULCode.TextFile tf = new ULCode.TextFile(Application.StartupPath + "/User.txt");
            string          s  = tf.Text();

            tf = null;
            if (!String.IsNullOrEmpty(s))
            {
                frmWorkDesktop fwd = new frmWorkDesktop();
                fwd.Show();
                this.Close();
            }
        }
Exemple #2
0
 protected void btnUpload_Click(object sender, EventArgs e)
 {
     if (fuForm.HasFile)
     {
         int id = WX.Request.rFormID;
         WX.Flow.Model.Form.MODEL f = WX.Request.rForm;//WX.Flow.Model.Form.NewDataModel(id);
         //上传
         string file = String.Format("/UploadFiles/Forms/{0}.html", f.Name);
         fuForm.SaveAs(Server.MapPath(file));
         //替换
         ULCode.TextFile tf = new ULCode.TextFile(Server.MapPath(file));
         f.Module.value       = tf.Text();
         f.Module_Short.value = f.GetShortModule();
         f.UpdateItems();
         f.Update();
     }
 }