public void ProcessRequest(HttpContext context) { string _SQLCONN2 = "Database='v06';Data Source='218.93.219.194';User Id='root';Password='******';charset='utf8';pooling=true;port=9988;"; context.Response.ContentType = "application/json"; //由于前端axiso 配置了断点续传的配置,所有用如下方法来获取请求参数 Sfcdatequipmentspecies ss = new Sfcdatequipmentspecies(); //{ "code":"d5dde9d2-9ac7-4d61-87db-89a129974683","name":"lj","parentcode":"001", // "parentname":"仪器设备","internalcode":"lj","warrantymonth":12,"scrapmonth":120, // "depreciationwayname":"平均折旧方法","depreciationwayid":1,"salvage":3,"depreciationmonth":120} ss.code = "d5dde9d2-9ac7-4d61-87db-89a129974683"; ss.name = "lj"; ss.parentcode = "002"; ss.parentname = "仪器设备"; ss.internalcode = "lj"; ss.warrantymonth = 12; ss.scrapmonth = "120"; ss.depreciationwayname = "平均折旧方法"; ss.depreciationwayid = "1"; ss.salvage = "3"; ss.depreciationmonth = "120"; ss.Creator = "江"; EquipmentparameterModule em = new EquipmentparameterModule(); // var cc=em.AutoSetEquipmentSpecieCodeTest(_SQLCONN2, ss); }
private void button2_Click(object sender, EventArgs e) { EquipmentparameterModule eqi = new EquipmentparameterModule(); Sfcdatequipmentspecies ss = new Sfcdatequipmentspecies(); ss.name = "送料车"; ss.parentcode = "003"; ss.Creator = "江"; //var ret = eqi.AutoSetEquipmentSpecieCodeTest(sqlConn, JsonConvert.SerializeObject(ss)); }
static void Main(string[] args) { //EquipmentparameterModule em = new EquipmentparameterModule(); //var model = new EquipmentModel(); //model.FuncName = "SummaryByDepartment"; ////model.Usetime = "2020-10-23"; //em.model = model; //em.GetEquiparameter(); // string reg = "W0100100257;100;2020/09/29;2021/09/28;Y-Bond S220(10g/5cc);8229IM-04;"; //var match= Regex.Matches(reg, @"/(?<=^).*?(?=\;)//(?<=;)[^;]+(?=;$)/"); // foreach (var item in match) // { // int i = 0; // } // var match1 = Regex.Matches(reg, "(?<=).*?(?=;)"); // foreach (var item in match1) // { // int z = 0; // } // string reg2 = "He is. The dog ran.The sun is out."; // var match3 = Regex.Matches(reg2, @"\w+(?=\.)"); //EquipmentparameterModule em = new EquipmentparameterModule(); //em.DeleteEqui(sqlConn, "20201027170300974"); //Model m = new Model(); //m.equiCode = "12"; //var str = JsonConvert.SerializeObject(m); //var JO = JsonConvert.DeserializeObject<JObject>(str); //var code = JO["equiCode"].ToString(); sysdatdepartment dep = new sysdatdepartment(); dep.DepartID = ""; dep.DepartName = "测试测试测试"; dep.ParentCode = ""; dep.ParentName = "测试部"; dep.internalcode = ""; dep.PicLoginID = ""; dep.PicUserName = ""; dep.ISENABLE = "1"; dep.CREATOR = ""; EquipmentparameterModule em = new EquipmentparameterModule(); em.StatisticalEqui(sqlConn); Console.ReadKey(); int aaaa = 0; }
private void button1_Click(object sender, EventArgs e) { // EquipmentparameterModule module = new EquipmentparameterModule(); EquipmentModel model = new EquipmentModel(); model.PageIndex = 1; model.PageSize = 5; model.AdvanceDays = Convert.ToInt32(textBox2.Text); model.FuncName = comboBox1.SelectedValue.ToString(); ReturnMsg msgM = module.GetEquipmentWarning(sqlConn, model); textBox1.Text = JsonConvert.SerializeObject(msgM); }