/// <summary> /// 保存finalize /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdForSavefinalize_Click(object sender, EventArgs e) { if (this.txtfinalizeJs.Text != String.Empty) { String strJsName = MyMessageBox.ShowInput("Input Javascript Name:", "Save Javascript"); MongoDBHelper.CreateNewJavascript(strJsName, txtfinalizeJs.Text); } }
/// <summary> /// Save Aggregate Pipeline /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdSaveAggregatePipeline_Click(object sender, EventArgs e) { if (this._AggrArray.Count != 0) { String strJsName = MyMessageBox.ShowInput("pls Input Aggregate Pipeline Name :", "Save Aggregate Pipeline"); MongoDBHelper.CreateNewJavascript(strJsName, new BsonDocument("Pipeline:", _AggrArray).ToString()); } }
private void cmdSave_Click(object sender, EventArgs e) { if (txtContext.Text != String.Empty) { String strJsName = MyMessageBox.ShowInput("pls Input Javascript Name:[Save at system.js]", "Save Javascript"); MongoDBHelper.CreateNewJavascript(strJsName, txtContext.Text); } }
/// <summary> /// 保存ReduceJs /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdSaveReduceJs_Click(object sender, EventArgs e) { if (this.txtReduceJs.Text != String.Empty) { String strJsName = MyMessageBox.ShowInput("pls Input Javascript Name", "Save Javascript"); MongoDBHelper.CreateNewJavascript(strJsName, txtReduceJs.Text); } }
private void cmdSaveDocument_Click(object sender, EventArgs e) { if (txtDocument.Text != string.Empty) { String strJsName = MyMessageBox.ShowInput("pls Input Aggregate Name:", "Save Aggregate"); MongoDBHelper.CreateNewJavascript(strJsName, txtDocument.Text); } }