Home > Net >  How in the increase to submit personnel name and project name
How in the increase to submit personnel name and project name

Time:05-11

Var _mpt=new BLL. CheckWorkLeaveBLL () SendCksend ();
If (_mpt!=null & amp; & _mpt. Count & gt; 0)
{
The foreach (var item in _mpt)
{
WxSendClass mptsend=new WxSendClass ();
Mptsend. TemplateId="u0uISfZd8d - LRoTby_SInJ6TToyTm2KHe_Rp_K2BE7Y";
Mptsend. First="submit a new project list, please review";
Mptsend. UserId="project list"; //in this increases to submit personnel name
Mptsend. Explain="approval"; //project name in the
Mptsend. Third=DateTime. Now. The ToString ();
Mptsend. Remark="project has the new project list, please login backstage audit".
Mptsend. Url="";
Mptsend. Openid=item. Openid;//this is the audit personnel
New BLL. Wxmsg (.) FwSendMsg (mptsend, new BLL WxAccessTokenBLL () AccessTokenShows ());
}
How in the increase to submit personnel name and project name, field is the following projectId, userId
Public class tb_materialApplication
{
Public int id {get; set; }
Public int userId {get; set; }
Public string materialId {get; set; }
Public int number {get; set; }
Public int status {get; set; }
Public string ckid {get; set; }
Public string projectId {get; set; }
Public string few {get; set; }
Public DateTime? Addtime {get; set; }
Public string materialGuid {get; set; }

}

CodePudding user response:

After tb_materialApplication instantiation assignment
Mptsend. UserId=tb_materialApplication. UserId.//in this increases to submit personnel name
Mptsend. Explain=tb_materialApplication. ProjectId;//in this increases the project name

CodePudding user response:

Tb_materialApplication if there only id you want to name a list that will need to go to another to match

CodePudding user response:

Tb_materialApplication this class to add two attributes, and then call outside can assignment, and do not need to order again,,
  •  Tags:  
  • C#
  • Related